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

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


��Qc@ssdZdefd��YZdefd��YZdefd��YZedefide�6�ZejGHd	S(
sR
There is a way to put keys of any type in a type's dictionary.
I think this allows various kinds of crashes, but so far I have only
found a convoluted attack of _PyType_Lookup(), which uses the mro of the
type without holding a strong reference to it.  Probably works with
super.__getattribute__() too, which uses the same kind of code.
tMyKeycBseZd�Zd�ZRS(cCs
td�S(Ntmykey(thash(tself((s3/sys/lib/python2.7/test/crashers/loosing_mro_ref.pyt__hash__
scCsCtft_g}x*td�D]}|j|ddf�qWdS(Ni�i�(tBase2tXt	__bases__trangetappendtNone(Rtothertzti((s3/sys/lib/python2.7/test/crashers/loosing_mro_ref.pyt__cmp__
s
(t__name__t
__module__RR(((s3/sys/lib/python2.7/test/crashers/loosing_mro_ref.pyR	s	tBasecBseZdZRS(s	from Base(RRR(((s3/sys/lib/python2.7/test/crashers/loosing_mro_ref.pyRsRcBseZdZRS(s
from Base2(RRR(((s3/sys/lib/python2.7/test/crashers/loosing_mro_ref.pyRsRiN(t__doc__tobjectRRRttypeRR(((s3/sys/lib/python2.7/test/crashers/loosing_mro_ref.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.