[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
severity: normal
status: open
title: select.poll() converts long to int without checking for overflow
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com