Message402003
| Author |
serhiy.storchaka |
| Recipients |
serhiy.storchaka |
| Date |
2021年09月17日.06:56:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1631861802.59.0.0581666676393.issue45228@roundup.psfhosted.org> |
| In-reply-to |
| Content |
It can be reproduced when run test.test_socket.J1939Test (omitted in regrtests now, see issue45187) with Address Sanitizer. See for example https://github.com/python/cpython/pull/28317/checks?check_run_id=3625390397.
It can be reproduced when run test.test_socket.J1939Test with unittest:
$ ./python -m unittest -v test.test_socket -k J1939Test
See J1939Test.log for output.
The cause is using PyArg_ParseTuple() with format unit "k" (unsigned long) and variable of type uint32_t. PyArg_ParseTuple() should only be used with native integer types (short, int, long, long long), it does not support support types of fixed size (uint16_t, uint32_t, uint64_t). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年09月17日 06:56:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
| 2021年09月17日 06:56:42 | serhiy.storchaka | set | messageid: <1631861802.59.0.0581666676393.issue45228@roundup.psfhosted.org> |
| 2021年09月17日 06:56:42 | serhiy.storchaka | link | issue45228 messages |
| 2021年09月17日 06:56:41 | serhiy.storchaka | create |
|