[New-bugs-announce] [issue16216] Arithmetic operations with NULL
Serhiy Storchaka
report at bugs.python.org
Sat Oct 13 00:45:08 CEST 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue16216>
_______________________________________
More information about the New-bugs-announce
mailing list