MCPcopy Index your code
hub / github.com/python/cpython / test_init_use_after_free

Method test_init_use_after_free

Lib/test/test_dict.py:1350–1357  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1348 self.assertFalse('test' in d)
1349
1350 def test_init_use_after_free(self):
1351 class X:
1352 def __hash__(self):
1353 pair[:] = []
1354 return 13
1355
1356 pair = [X(), 123]
1357 dict([pair])
1358
1359 def test_oob_indexing_dictiter_iternextitem(self):
1360 class X(int):

Callers

nothing calls this directly

Calls 1

XClass · 0.70

Tested by

no test coverage detected