Message303460
Using nested _PyMem_DebugRawRealloc() looks suspicions to me. This may be a bug.
But even without nested _PyMem_DebugRawRealloc() writing to the extra memory after using realloc() looks wrong to me. This can break other non-trivial system allocators which write an information past the allocated block. This can cause a segfault if unused memory pages are returned to OS.
After creating the PR I have found that it literally restores the code of 2.7 and 3.3. 3.4 and later contain this bug. The bug looks enough serious to me for fixing it in 3.4 and 3.5. |
|
Date |
User |
Action |
Args |
2017-10-01 13:02:31 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, larry, davin |
2017-10-01 13:02:31 | serhiy.storchaka | set | messageid: <1506862951.0.0.213398074469.issue31626@psf.upfronthosting.co.za> |
2017-10-01 13:02:30 | serhiy.storchaka | link | issue31626 messages |
2017-10-01 13:02:30 | serhiy.storchaka | create | |
|