Message343215
Python 3.8.0a4+ (heads/master:ef9d9b6312, May 22 2019, 08:35:25)
[GCC 9.0.1 20190402 (experimental) [trunk revision 270074]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.if_indextoname(2**64 - 1)
Fatal Python error: a function returned NULL without setting an error
SystemError: <built-in function if_indextoname> returned NULL without setting an error
Current thread 0x00007f29d708d140 (most recent call first):
File "<stdin>", line 1 in <module>
Aborted (core dumped)
This is because socket.if_indextoname() does not use PyErr_Occurred() when checking PyLong_AsUnsignedLong() for failure. |
|
Date |
User |
Action |
Args |
2019-05-22 16:28:25 | ZackerySpytz | set | recipients:
+ ZackerySpytz, vstinner, serhiy.storchaka |
2019-05-22 16:28:25 | ZackerySpytz | set | messageid: <1558542505.9.0.778249415018.issue37013@roundup.psfhosted.org> |
2019-05-22 16:28:25 | ZackerySpytz | link | issue37013 messages |
2019-05-22 16:28:25 | ZackerySpytz | create | |
|