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.4805322e-06
Marked as misclassified No
Message-id <1280417831.58.0.237064631971.issue9319@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-29 15:37:11ron_adamsetrecipients: + ron_adam, pitrou, benjamin.peterson, skrah
2010-07-29 15:37:11ron_adamsetmessageid: <1280417831.58.0.237064631971.issue9319@psf.upfronthosting.co.za>
2010-07-29 15:37:00ron_adamlinkissue9319 messages
2010-07-29 15:37:00ron_adamcreate