[issue7065] bytes.maketrans segfaults

2009-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in r75404 and r75406. Thanks! -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> release blocker type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread egreen
egreen added the comment: Yes, it should indeed be a Py_ssize_t. New patch. -- Added file: http://bugs.python.org/file15050/bytes_maketrans_2.patch ___ Python tracker ___ __

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Good catch! Shouldn't the "i" variable be a "Py_ssize_t"? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread egreen
New submission from egreen : The new maketrans static method in Python 3.1 segfaults when using byte values > 127. Reproduce: bytes.maketrans(bytes(range(256)), b'X' * 256) Cause: _Py_bytes_maketrans in Objects/bytes_methods.c uses signed int as array index. Fix attached. Also adds test.