Roundup Robot added the comment:
New changeset debdfa44f020 by Serhiy Storchaka in branch '2.7':
Issue #16404: Add checks for return value of PyInt_FromLong() in
http://hg.python.org/cpython/rev/debdfa44f020
New changeset 928c0acf7c09 by Serhiy Storchaka in branch '3.3':
Issue #16404: Add
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Here is a patch. arraymodule.c is already fixed. Instead I found other bug in
sysmodule.c. I'm not sure about extending.rst, PyLong_FromLong(0L) should never
fail if NSMALLNEGINTS + NSMALLPOSINTS 0.
--
keywords: +patch
stage: needs patch - patch
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file32908/issue16404.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: -Documentation, Interpreter Core
Added file: http://bugs.python.org/file32910/issue16404.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: docs@python - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
___
Python-bugs-list mailing list
New submission from Ned Batchelder:
Examining the CPython sources, there are a number of places where
PyLong_FromLong is used without checking its return value. In places where it
is done correctly, PyErr_Occurred is often used to avoid having to check every
call.
Here are places where it
Serhiy Storchaka added the comment:
See also issue15989.
--
assignee: - docs@python
components: +Documentation, Extension Modules, Interpreter Core
nosy: +docs@python, mark.dickinson, serhiy.storchaka
stage: - needs patch
type: - behavior
versions: +Python 3.2, Python 3.3
12 matches
Mail list logo