homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author luked
Recipients
Date 2005年11月03日.01:54:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
selectmodule.c calls PyInt_AsLong without checking
whether the conversion produced an error.
This bug can cause an error to be reported at the wrong
point, eg:
Python 2.4.2 (#1, Nov 3 2005, 12:41:57)
[GCC 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110,
ssp-3.4.3.20050110-0, pie-8.7 on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import select
>>> p = select.poll()
>>> p.register(0) # stdin
>>> p.poll(0x100000000)
[(0, 4)]
>>> 2 + 3
OverflowError: long int too large to convert to int
>>>
History
Date User Action Args
2007年08月23日 14:35:57adminlinkissue1346533 messages
2007年08月23日 14:35:57admincreate

AltStyle によって変換されたページ (->オリジナル) /