Skip to content
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

Avoid a null-pointer dereference in _tri.cpp #2993

Merged
merged 1 commit into from Apr 22, 2014

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.

None yet

3 participants