[New-bugs-announce] [issue15989] Possible integer overflow of PyLong_AsLong() results

Serhiy Storchaka report at bugs.python.org
Thu Sep 20 21:01:45 CEST 2012


New submission from Serhiy Storchaka:

There are several places where the result of PyLong_AsLong() assigned to variable of type int. It can cause unknown issues on platforms with sizeof(int) != sizeof(long). All 140 cases of PyLong_AsLong() usage should be checked.

----------
assignee: storchaka
components: Interpreter Core
messages: 170832
nosy: storchaka
priority: normal
severity: normal
status: open
title: Possible integer overflow of PyLong_AsLong() results
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15989>
_______________________________________


More information about the New-bugs-announce mailing list