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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2012-10-12.22:45:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350081908.35.0.947627906901.issue16216@psf.upfronthosting.co.za>
In-reply-to
Content
In the function STRINGLIB(fastsearch_memchr_1char) in the file Objects/stringlib/fastsearch.h NULL returned by memchr/memrchr casted to intptr_t, then some arithmetic operations performed on this integer, and result casted back to pointer. I think it is unsafe to do with NULL. The code is easy to rewrite in order to avoid such a questionable operations.
History
Date User Action Args
2012-10-12 22:45:08serhiy.storchakasetrecipients: + serhiy.storchaka
2012-10-12 22:45:08serhiy.storchakasetmessageid: <1350081908.35.0.947627906901.issue16216@psf.upfronthosting.co.za>
2012-10-12 22:45:08serhiy.storchakalinkissue16216 messages
2012-10-12 22:45:08serhiy.storchakacreate