Skip to content

Conversation

jkseppan
Copy link
Member

Found using the clang static analyzer:
if PyArray_ContiguousFromObject returns NULL,
PyArray_NDIM(x) causes a null-pointer dereference.

@ianthomas23: could you review this?

Found using the clang static analyzer:
if PyArray_ContiguousFromObject returns NULL,
PyArray_NDIM(x) causes a null-pointer dereference.
@tacaswell tacaswell added this to the v1.4.0 milestone Apr 19, 2014
@ianthomas23
Copy link
Member

@jkseppan: Thanks for finding and fixing this.

ianthomas23 added a commit that referenced this pull request Apr 22, 2014
Avoid a null-pointer dereference in _tri.cpp
@ianthomas23 ianthomas23 merged commit a809ef9 into matplotlib:master Apr 22, 2014
@jkseppan jkseppan deleted the tri-null-pointer branch July 6, 2015 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants