]> granicus.if.org Git - python/commit
PyDict_GetItem() returns a borrowed reference.
authorArmin Rigo <arigo@tunes.org>
Wed, 5 Sep 2007 07:51:21 +0000 (07:51 +0000)
committerArmin Rigo <arigo@tunes.org>
Wed, 5 Sep 2007 07:51:21 +0000 (07:51 +0000)
commit362bb5150352603394aacc1d7d0592938962fe92
treec468cb0368208080011d2a1d500c162a208d9d0e
parent4c1cb7ea8e35e3df5d5a9fc5640fefe89a238d31
PyDict_GetItem() returns a borrowed reference.
There are probably a number of places that are open to attacks
such as the following one, in bltinmodule.c:min_max().
Lib/test/crashers/borrowed_ref_3.py [new file with mode: 0644]