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

Image: handle images with zero columns or rows. #3102

Merged
merged 1 commit into from Jun 1, 2014

Conversation

efiring
Copy link
Member

@efiring efiring commented Jun 1, 2014

Two methods in the _image extension module now raise an
exception if the number of rows or columns is zero;
previously they could segfault. A particular
circumstance that can cause this (setting xlim completely
outside the image extent) is handled directly in the
image module without raising an exception.

Closes #3091.

Two methods in the _image extension module now raise an
exception if the number of rows or columns is zero;
previously they could segfault.  A particular
circumstance that can cause this (setting xlim completely
outside the image extent) is handled directly in the
image module without raising an exception.

Closes matplotlib#3091.
tacaswell added a commit that referenced this pull request Jun 1, 2014
Image: handle images with zero columns or rows.
@tacaswell tacaswell merged commit 3f63888 into matplotlib:master Jun 1, 2014
@efiring efiring deleted the image_segfault branch November 23, 2014 21:15
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.

set_xlim() crashes kernel if interpolation='none'
2 participants