summaryrefslogtreecommitdiff
path: root/Python/pystrcmp.c
diff options
context:
space:
mode:
authorT. Wouters <thomas@python.org>2019-09-28 16:49:15 +0200
committerGregory P. Smith <greg@krypto.org>2019-09-28 07:49:15 -0700
commitc8165036f374cd2ee64d4314eeb2514f7acb5026 (patch)
tree457ae87d81e9ec7ee50e538302d069e28cf79287 /Python/pystrcmp.c
parent7774d7831e8809795c64ce27f7df52674581d298 (diff)
downloadcpython-git-c8165036f374cd2ee64d4314eeb2514f7acb5026.tar.gz
bpo-38115: Deal with invalid bytecode offsets in lnotab (GH-16079)
Document that lnotab can contain invalid bytecode offsets (because of terrible reasons that are difficult to fix). Make dis.findlinestarts() ignore invalid offsets in lnotab. All other uses of lnotab in CPython (various reimplementations of addr2line or line2addr in Python, C and gdb) already ignore this, because they take an address to look for, instead. Add tests for the result of dis.findlinestarts() on wacky constructs in test_peepholer.py, because it's the easiest place to add them.
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions