STINNER Victor added the comment:

> I think there are too many changes. Here is simpler patch which get rid of 
> all warnings in Objects/unicodeobject.c on my computer (gcc 4.6.3, 32-bit 
> Linux).

The purpose of my patch is not to make the compiler quiet, but to ensure that 
negative lengths are handled correctly: Python must raise an error if a length 
is negative.

For example, _PyUnicode_DecodeUnicodeInternal() doesn't check currently if the 
size is negative. I don't know exactly what happens if you pass a negative size.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22207>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to