[New-bugs-announce] [issue24714] Crash with string_at(None)
report at bugs.python.org
Sat Jul 25 11:40:48 CEST 2015
New submission from Michael Toews:
On Debian x64 stable with Python 2.7 and 3.4, the following causes a segmentation fault:
from ctypes import string_at
On Windows 64-bit with Python 2.7 it raises WindowsError and Python 3.3 raises OSError, both showing a message "access violation reading 0x0000000000000000", but it does not crash.
The above behavior was found when reading a result from a C API that can be either a zero-terminated string or NULL.
title: Crash with string_at(None)
versions: Python 2.7, Python 3.3, Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce