[issue16736] select.poll() converts long to int without checking for overflow

2012-12-20 Thread Richard Oudkerk
Richard Oudkerk added the comment: Thanks. I will close. -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue16736] select.poll() converts long to int without checking for overflow

2012-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a part of issue15989. -- nosy: +serhiy.storchaka resolution: -> duplicate superseder: -> Possible integer overflow of PyLong_AsLong() results ___ Python tracker ___

[issue16736] select.poll() converts long to int without checking for overflow

2012-12-20 Thread Richard Oudkerk
New submission from Richard Oudkerk: 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 -- messages: 177811 nosy: sbt priority: no