[issue16216] Arithmetic operations with NULL

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot to mention the issue number in commit messages. There are changeset ad9b5c69b8b6 (for 3.3) and changeset 1f66fc397c8d (for default). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue16216] Arithmetic operations with NULL

2012-12-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16216] Arithmetic operations with NULL

2012-11-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16216] Arithmetic operations with NULL

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16216] Arithmetic operations with NULL

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16216] Arithmetic operations with NULL

2012-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The Standard is not guarantee that result of converting null pointer to integer is zero or even it is a even number. I remember the ancient C implementation, where it was not so (but Python is not supports these platform). Of course, such a method of obtaini

[issue16216] Arithmetic operations with NULL

2012-10-12 Thread STINNER Victor
STINNER Victor added the comment: > I think it is unsafe to do with NULL. Could you please elaborate? -- nosy: +haypo ___ Python tracker ___

[issue16216] Arithmetic operations with NULL

2012-10-12 Thread Serhiy Storchaka
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 un