Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
It is documented thatPyModule_AddIntMacro can raise an error (and it can in fact):
..c:macro:: PyModule_AddIntMacro(module, macro) Return ``-1`` on error, ``0`` on success.
But, some calls are not checked for errors:
cpython/Modules/selectmodule.c
Lines 2471 to 2476 in96cbd1e
| PyModule_AddIntMacro(m,POLLIN); | |
| PyModule_AddIntMacro(m,POLLPRI); | |
| PyModule_AddIntMacro(m,POLLOUT); | |
| PyModule_AddIntMacro(m,POLLERR); | |
| PyModule_AddIntMacro(m,POLLHUP); | |
| PyModule_AddIntMacro(m,POLLNVAL); |