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.

classification
Title: select.poll() converts long to int without checking for overflow
Type: behavior Stage: resolved
Components: Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Possible integer overflow of PyLong_AsLong() results
View: 15989
Assigned To: Nosy List: sbt, serhiy.storchaka
Priority: normal Keywords:

Created on 2012年12月20日 12:12 by sbt, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg177811 - (view) Author: Richard Oudkerk (sbt) * (Python committer) Date: 2012年12月20日 12:12
Relevant code:
 int timeout = 0, poll_result, i, j;
 ...
 tout = PyNumber_Long(tout);
 if (!tout)
 return NULL;
 timeout = PyLong_AsLong(tout); <-- implicit cast to int
msg177813 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012年12月20日 13:01
This is a part of issue15989.
msg177822 - (view) Author: Richard Oudkerk (sbt) * (Python committer) Date: 2012年12月20日 14:05
Thanks. I will close.
History
Date User Action Args
2022年04月11日 14:57:39adminsetgithub: 60940
2012年12月20日 14:05:39sbtsetstatus: open -> closed

messages: + msg177822
stage: resolved
2012年12月20日 13:01:52serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg177813
resolution: duplicate

superseder: Possible integer overflow of PyLong_AsLong() results
2012年12月20日 12:12:44sbtcreate

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