[issue27962] null poiter dereference in set_conversion_mode due uncheck _ctypes_conversion_encoding

Xiang Zhang report at bugs.python.org
Tue Sep 6 00:31:00 EDT 2016


Xiang Zhang added the comment:

Same as my comment in issue27963.

Python 2.7.12+ (2.7:de9e410e78d8, Sep  6 2016, 12:28:48) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> 
>>> s = 'a'*(0xffffffff/2-0xffff)
>>> sss = 'a'*(0xffffffff/4)
>>> ctypes.set_conversion_mode(s, s)
('ascii', 'strict')

----------
nosy: +xiang.zhang

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27962>
_______________________________________


More information about the Python-bugs-list mailing list