]> granicus.if.org Git - python/commit
PyDict_GetItem() returns a borrowed reference.
authorArmin Rigo <arigo@tunes.org>
Thu, 6 Sep 2007 09:30:38 +0000 (09:30 +0000)
committerArmin Rigo <arigo@tunes.org>
Thu, 6 Sep 2007 09:30:38 +0000 (09:30 +0000)
commit337841dac7f1936c78bacf60c88e085e7ca6231d
treef7ece2f347d2d14316f47b7deb335ae184395ace
parentbddc3416f8ff0b1436e219aa8281ccad845d81f6
PyDict_GetItem() returns a borrowed reference.
This attack is against ceval.c:IMPORT_NAME, which calls an
object (__builtin__.__import__) without holding a reference to it.
Lib/test/crashers/borrowed_ref_4.py [new file with mode: 0644]