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 vstinner
Recipients neologix, python-dev, serhiy.storchaka, vstinner
Date 2014-08-25.01:22:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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.
Date User Action Args
2014-08-25 01:22:09vstinnersetrecipients: + vstinner, neologix, python-dev, serhiy.storchaka
2014-08-25 01:22:09vstinnersetmessageid: <>
2014-08-25 01:22:09vstinnerlinkissue22207 messages
2014-08-25 01:22:09vstinnercreate