mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint
Need to check return result of PyInt_AsLong() Will backport.
This commit is contained in:
parent
26f4c23074
commit
0f46bbf781
3 changed files with 24 additions and 0 deletions
|
@ -470,6 +470,8 @@ poll_poll(pollObject *self, PyObject *args)
|
|||
return NULL;
|
||||
timeout = PyInt_AsLong(tout);
|
||||
Py_DECREF(tout);
|
||||
if (timeout == -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Ensure the ufd array is up to date */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue