================================================================= ==8500==ERROR: AddressSanitizer: negative-size-param: (size=-42) #0 0x7f79ab4b8c69 in __asan_memset (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8cc69) #1 0x43ff83 in memset /usr/include/x86_64-linux-gnu/bits/string3.h:90 #2 0x43ff83 in asm_parse_directive /home/prakti/Downloads/tcc-0.9.27/tccasm.c:501 #3 0x44173c in tcc_assemble_internal /home/prakti/Downloads/tcc-0.9.27/tccasm.c:927 #4 0x441b5f in tcc_assemble_inline /home/prakti/Downloads/tcc-0.9.27/tccasm.c:995 #5 0x442a8a in asm_global_instr /home/prakti/Downloads/tcc-0.9.27/tccasm.c:1267 #6 0x426034 in decl0 /home/prakti/Downloads/tcc-0.9.27/tccgen.c:7164 #7 0x42fdc6 in decl /home/prakti/Downloads/tcc-0.9.27/tccgen.c:7383 #8 0x42fdc6 in tccgen_compile /home/prakti/Downloads/tcc-0.9.27/tccgen.c:275 #9 0x4052c9 in tcc_compile /home/prakti/Downloads/tcc-0.9.27/libtcc.c:648 #10 0x407891 in tcc_add_file_internal /home/prakti/Downloads/tcc-0.9.27/libtcc.c:1064 #11 0x407cd4 in tcc_add_file /home/prakti/Downloads/tcc-0.9.27/libtcc.c:1092 #12 0x404886 in main /home/prakti/Downloads/tcc-0.9.27/tcc.c:332 #13 0x7f79aab7582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #14 0x402448 in _start (/home/prakti/Downloads/tcc-asan/tcc+0x402448) 0x60600000ee6a is located 42 bytes inside of 64-byte region [0x60600000ee40,0x60600000ee80) allocated by thread T0 here: #0 0x7f79ab4c4961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961) #1 0x406142 in tcc_realloc /home/prakti/Downloads/tcc-0.9.27/libtcc.c:224 #2 0x4313b0 in section_realloc /home/prakti/Downloads/tcc-0.9.27/tccelf.c:267 #3 0x4314a2 in section_add /home/prakti/Downloads/tcc-0.9.27/tccelf.c:282 #4 0x431511 in section_ptr_add /home/prakti/Downloads/tcc-0.9.27/tccelf.c:293 #5 0x43bb3f in tcc_load_object_file /home/prakti/Downloads/tcc-0.9.27/tccelf.c:2432 #6 0x4077e6 in tcc_add_file_internal /home/prakti/Downloads/tcc-0.9.27/libtcc.c:1028 #7 0x407a43 in tcc_add_library_internal /home/prakti/Downloads/tcc-0.9.27/libtcc.c:1109 #8 0x407dd5 in tcc_add_crt /home/prakti/Downloads/tcc-0.9.27/libtcc.c:1125 #9 0x407fb7 in tcc_set_output_type /home/prakti/Downloads/tcc-0.9.27/libtcc.c:978 #10 0x4045a9 in main /home/prakti/Downloads/tcc-0.9.27/tcc.c:312 #11 0x7f79aab7582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) SUMMARY: AddressSanitizer: negative-size-param ??:0 __asan_memset ==8500==ABORTING