-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
1.5rc1: Calling figure transform with wrong argument crashs python #5105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Segfaults on linux as well. That is exciting! attn @mdboom |
The crash is at https://github.com/matplotlib/matplotlib/blob/master/src/numpy_cpp.h#L471, when This does not crash: diff --git a/src/numpy_cpp.h b/src/numpy_cpp.h
index 10ae68c..c961e25 100644
--- a/src/numpy_cpp.h
+++ b/src/numpy_cpp.h
@@ -465,7 +465,7 @@ class array_view : public detail::array_view_accessors<array_view, T, ND>
npy_intp dim(size_t i) const
{
- if (i > ND) {
+ if ((i > ND) || (m_shape == NULL)) {
return 0;
}
return m_shape[i]; |
I don't think |
The zero-data branch sets |
Patch in #5106. |
Even if |
@cgohlke is right, that looks like a bug even if it wasn't the cause of this crash. |
In many cases |
Oh, I suppose since |
Following lead to a interpreter crash:
Windows 10, 64 bit, 2.7
The text was updated successfully, but these errors were encountered: