8000 Bug in ParseTuple for PyQuadContourGenerator_init by cimarronm · Pull Request #4229 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Bug in ParseTuple for PyQuadContourGenerator_init #4229

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

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

cimarronm
Copy link
Contributor

This is a fix for issue #4222. On compilers where bool is not the same size as int, there is a stack overrun of the variadic function PyArg_ParseTuple in PyQuadContourGenerator_init.

@efiring
Copy link
Member
efiring commented Mar 16, 2015

Makes sense; but I wonder why it hasn't crashed on linux. I'm finding sizeof(bool) to be 1 both on OS X with clang++ and g++, and on linux with g++.

@ianthomas23
Copy link
Member

Evidently the compilers on linux are more tolerant of my slack coding than on OS X. Perhaps there is a difference in bool alignment/packing; I don't have access to a mac so I can't check this. Anyway, the fix is good and is needed regardless of whether it fixes the original problem, so merging.

ianthomas23 added a commit that referenced this pull request Mar 16, 2015
Bug in ParseTuple for PyQuadContourGenerator_init
@ianthomas23 ianthomas23 merged commit 2153aca into matplotlib:master Mar 16, 2015
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.

4 participants
0