[issue29438] use after free in key sharing dict

Xiang Zhang report at bugs.python.org
Tue Feb 7 23:14:06 EST 2017


Xiang Zhang added the comment:

> if (was_shared && (cached = CACHED_KEYS(tp)) != NULL && cached != ((PyDictObject *)dict)->ma_keys)

+1 on this and I think the deletion should also use

if ((cached = CACHED_KEYS(tp) != NULL)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29438>
_______________________________________


More information about the Python-bugs-list mailing list