[Python-checkins] cpython: Issue #14231: Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4.

victor.stinner python-checkins at python.org
Fri Mar 9 14:00:13 CET 2012


http://hg.python.org/cpython/rev/850d7f6af1b0
changeset:   75506:850d7f6af1b0
user:        Victor Stinner <vstinner at wyplay.com>
date:        Fri Mar 09 13:59:42 2012 +0100
summary:
  Issue #14231: Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4.

files:
  Lib/test/crashers/borrowed_ref_1.py |  29 -----------------
  1 files changed, 0 insertions(+), 29 deletions(-)


diff --git a/Lib/test/crashers/borrowed_ref_1.py b/Lib/test/crashers/borrowed_ref_1.py
deleted file mode 100644
--- a/Lib/test/crashers/borrowed_ref_1.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""
-_PyType_Lookup() returns a borrowed reference.
-This attacks the call in dictobject.c.
-"""
-
-class A(object):
-    pass
-
-class B(object):
-    def __del__(self):
-        print('hi')
-        del D.__missing__
-
-class D(dict):
-    class __missing__:
-        def __init__(self, *args):
-            pass
-
-
-d = D()
-a = A()
-a.cycle = a
-a.other = B()
-del a
-
-prev = None
-while 1:
-    d[5]
-    prev = (prev,)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list