Message324420
> I think it is technically not possible. Neither PyDict_Next() nor Py_INCREF() mutate the dict, call the user code or release GIL. If it could be possible, we would have a potential writing out of a buffer here.
When I read PyDict_Next(), I'm thinking at the Python level which can execute arbitrary code. But it seems like you are right: the exact C implementation of PyDict_Next() doesn't seem to modify the dictionary.
PR 9009 seems safe. |
|
Date |
User |
Action |
Args |
2018-08-31 14:19:52 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka, Eric Lippert |
2018-08-31 14:19:52 | vstinner | set | messageid: <1535725192.08.0.56676864532.issue34551@psf.upfronthosting.co.za> |
2018-08-31 14:19:52 | vstinner | link | issue34551 messages |
2018-08-31 14:19:52 | vstinner | create | |
|