This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author drukker
Recipients drukker
Date 2009-10-05.12:53:16
SpamBayes Score 4.8372492e-08
Marked as misclassified No
Message-id <1254747203.73.0.94763018002.issue7065@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-10-05 12:53:24drukkersetrecipients: + drukker
2009-10-05 12:53:23drukkersetmessageid: <1254747203.73.0.94763018002.issue7065@psf.upfronthosting.co.za>
2009-10-05 12:53:22drukkerlinkissue7065 messages
2009-10-05 12:53:21drukkercreate