Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/test/crashers/decref_before_assignment.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlZddlZdefd��YZdefd��YZd�Zdefd	��YZej	e��Z
e
je��dS(
s�
General example for an attack against code like this:

    Py_DECREF(obj->attr); obj->attr = ...;

here in Module/_json.c:scanner_init().

Explanation: if the first Py_DECREF() calls either a __del__ or a
weakref callback, it will run while the 'obj' appears to have in
'obj->attr' still the old reference to the object, but not holding
the reference count any more.

Status: progress has been made replacing these cases, but there is an
infinite number of such cases.
i�NtCtx1cBs2eZdZdZdZdZdZdZdZ	RS(tutf8N(
t__name__t
__module__tencodingtNonetstricttobject_hooktobject_pairs_hooktparse_floatt	parse_inttparse_constant(((s</sys/lib/python2.7/test/crashers/decref_before_assignment.pyRstFoocBseZRS((RR(((s</sys/lib/python2.7/test/crashers/decref_before_assignment.pyRscGstjjGHdS(N(tscannerRt__dict__(targs((s</sys/lib/python2.7/test/crashers/decref_before_assignment.pyt	delete_mestCtx2cBseZed��ZRS(cCs.td�}t�|_tj|t�a|S(NR(RtglobalstabctweakreftrefRtwref(tselftf((s</sys/lib/python2.7/test/crashers/decref_before_assignment.pyR#s(RRtpropertyR(((s</sys/lib/python2.7/test/crashers/decref_before_assignment.pyR"s(t__doc__t_jsonRtobjectRtunicodeRRRtmake_scannerR
t__init__(((s</sys/lib/python2.7/test/crashers/decref_before_assignment.pyt<module>s			

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.