Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f19d00b5220a by Amaury Forgeot d'Arc in branch '3.2':
Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
http://hg.python.org/cpython/rev/f19d00b5220a
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4aa00f465b4f by Amaury Forgeot d'Arc in branch '2.7':
Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
http://hg.python.org/cpython/rev/4aa00f465b4f
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5df1609fbd8f by Amaury Forgeot d'Arc in branch '3.2':
Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
http://hg.python.org/cpython/rev/5df1609fbd8f
New changeset d8c73a7d65f8 by Amaury
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9651
Meador Inge mead...@gmail.com added the comment:
Ping. I think this one is OK to commit.
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9651
___
Meador Inge mead...@gmail.com added the comment:
This crash still occurs in the main development branch and Amaury's patch
still fixes the problem. I verified that all tests pass on OS X 10.6.5.
It should be OK to commit.
--
assignee: theller -
nosy: +meador.inge -theller
versions:
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
Looks good to me.
--
nosy: +Trundle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9651
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Confirmed on all versions since 2.6. Patch attached.
--
keywords: +patch
nosy: +amaury.forgeotdarc
stage: - patch review
Added file: http://bugs.python.org/file18595/ctypes-buffer.patch
___
New submission from André Bjärby andre.bja...@gmail.com:
The attached (5 line) file will crash ctypes (Python 2.6.6rc2) with a Floating
point exception (division by zero at _ctypes.c:2533).
There's no crash with python 2.5.5
--
assignee: theller
components: ctypes
files: test.py