Message26790
| 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:57 | admin | link | issue1346533 messages |
| 2007年08月23日 14:35:57 | admin | create |
|