[issue6540] bytearray.translate(): error in error handling

2009-07-22 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74167. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> critical stage: -> patch review type: -> crash ___ Python tracker ___ ___ Python-bugs-list

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread STINNER Victor
STINNER Victor added the comment: Oops, my first patch was broken (redefine "test_bin", instead of using a different method name). The name patch tests both cases (the two crashs). -- Added file: http://bugs.python.org/file14533/bytearray-2.patch ___

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file14532/bytearray.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread STINNER Victor
New submission from STINNER Victor : bytearray.translate() crash if: * first argument was converted to a buffer but the buffer length is not 256 bytes * first argument is valid, but the second argument can not be converted to a buffer The crash occurs because PyBuffer_Release(&vdel) is called