[issue13334] Erroneous Size check in _PyString_Resize

2011-11-03 Thread david
Changes by david db.pub.m...@gmail.com: -- title: Erroneous Size check in - Erroneous Size check in _PyString_Resize ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13334 ___

[issue13334] Erroneous Size check in _PyString_Resize

2011-11-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Let's take an example: on a 32bit system, call _PyString_Resize(s, 0x7ff8) Then PyStringObject_SIZE + newsize is something like -0x7ff8 (yes, it wraps around and is a negative number) But when cast to an unsigned size_t

[issue13334] Erroneous Size check in _PyString_Resize

2011-11-03 Thread david
david db.pub.m...@gmail.com added the comment: Yes my bad :-) I got my C test case wrong. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13334 ___

[issue13334] Erroneous Size check in _PyString_Resize

2011-11-03 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13334 ___ ___