================================================================= ==2487==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf270f0ff at pc 0x56be14a6 bp 0xff94d6b8 sp 0xff94d6ac READ of size 1 at 0xf270f0ff thread T0 #0 0x56be14a5 in tok_nextc /home/will/python/cpython/Parser/tokenizer.c:1025:28 #1 0x56bd9c4a in tok_get /home/will/python/cpython/Parser/tokenizer.c:1457:13 #2 0x56bdad09 in tok_get /home/will/python/cpython/Parser/tokenizer.c:1524:34 #3 0x56bd926a in PyTokenizer_Get /home/will/python/cpython/Parser/tokenizer.c:1804:18 #4 0x56bd4a37 in parsetok /home/will/python/cpython/Parser/parsetok.c:208:16 #5 0x56bd6391 in PyParser_ParseFileObject /home/will/python/cpython/Parser/parsetok.c:134:12 #6 0x56a84e9b in PyParser_ASTFromFileObject /home/will/python/cpython/Python/pythonrun.c:1150:15 #7 0x56a85ac7 in PyRun_FileExFlags /home/will/python/cpython/Python/pythonrun.c:916:11 #8 0x56a83b28 in PyRun_SimpleFileExFlags /home/will/python/cpython/Python/pythonrun.c:396:13 #9 0x56a83336 in PyRun_AnyFileExFlags /home/will/python/cpython/Python/pythonrun.c:80:16 #10 0x5678a224 in run_file /home/will/python/cpython/Modules/main.c:318:11 #11 0x5678a224 in Py_Main /home/will/python/cpython/Modules/main.c:768 #12 0x56783100 in main /home/will/python/cpython/./Programs/python.c:69:11 #13 0xf7555496 in __libc_start_main (/usr/lib32/libc.so.6+0x18496) #14 0x566bc5e7 in _start (/home/will/python/cpython/python+0xf85e7) 0xf270f0ff is located 1 bytes to the left of 8194-byte region [0xf270f100,0xf2711102) allocated by thread T0 here: #0 0x56757814 in realloc (/home/will/python/cpython/python+0x193814) #1 0x567845d1 in _PyMem_RawRealloc /home/will/python/cpython/Objects/obmalloc.c:84:12 #2 0x56783596 in PyMem_Realloc /home/will/python/cpython/Objects/obmalloc.c:343:12 #3 0x56bdffac in tok_nextc /home/will/python/cpython/Parser/tokenizer.c:1058:31 #4 0x56bd9559 in tok_get /home/will/python/cpython/Parser/tokenizer.c:1354:17 #5 0x56bd926a in PyTokenizer_Get /home/will/python/cpython/Parser/tokenizer.c:1804:18 #6 0x56bd4a37 in parsetok /home/will/python/cpython/Parser/parsetok.c:208:16 #7 0x56bd6391 in PyParser_ParseFileObject /home/will/python/cpython/Parser/parsetok.c:134:12 #8 0x56a84e9b in PyParser_ASTFromFileObject /home/will/python/cpython/Python/pythonrun.c:1150:15 #9 0x56a85ac7 in PyRun_FileExFlags /home/will/python/cpython/Python/pythonrun.c:916:11 #10 0x56a83b28 in PyRun_SimpleFileExFlags /home/will/python/cpython/Python/pythonrun.c:396:13 #11 0x56a83336 in PyRun_AnyFileExFlags /home/will/python/cpython/Python/pythonrun.c:80:16 #12 0x5678a224 in run_file /home/will/python/cpython/Modules/main.c:318:11 #13 0x5678a224 in Py_Main /home/will/python/cpython/Modules/main.c:768 #14 0x56783100 in main /home/will/python/cpython/./Programs/python.c:69:11 #15 0xf7555496 in __libc_start_main (/usr/lib32/libc.so.6+0x18496) SUMMARY: AddressSanitizer: heap-buffer-overflow /home/will/python/cpython/Parser/tokenizer.c:1025:28 in tok_nextc Shadow bytes around the buggy address: 0x3e4e1dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e4e1dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e4e1de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e4e1df0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e4e1e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x3e4e1e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa] 0x3e4e1e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x3e4e1e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x3e4e1e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x3e4e1e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x3e4e1e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==2487==ABORTING