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 ron_adam
Recipients benjamin.peterson, pitrou, ron_adam, skrah
Date 2010-07-29.15:37:00
SpamBayes Score 2.48053e-06
Marked as misclassified No
Message-id <>
The error happens when Null is passed to strlen in (unicodeobject.c, line 860)

Passing NULL to a string format function is probably in the category of don't do that.

Stefans solution of checking for NULL before calling PyErr_Format looks to me to be correct.  As he notes, the same technique is used in another place.

It might be good to add a note somewhere not to pass NULL to C string format functions.
Date User Action Args
2010-07-29 15:37:11ron_adamsetrecipients: + ron_adam, pitrou, benjamin.peterson, skrah
2010-07-29 15:37:11ron_adamsetmessageid: <>
2010-07-29 15:37:00ron_adamlinkissue9319 messages
2010-07-29 15:37:00ron_adamcreate