New submission from Serhiy Storchaka: 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.
---------- components: Interpreter Core files: null_align.patch keywords: 3.3regression, patch messages: 172791 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Arithmetic operations with NULL versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file27548/null_align.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16216> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com