/home/chiller/Desktop/git/ddnet/src/engine/external/json-parser/json.c:402:65: runtime error: applying non-zero offset 5 to null pointer #0 0x1b361d4 in json_parse_ex /home/chiller/Desktop/git/ddnet/src/engine/external/json-parser/json.c:402:65 #1 0x1b436e0 in json_parse /home/chiller/Desktop/git/ddnet/src/engine/external/json-parser/json.c:946:11 #2 0xc85e4b in CServerBrowser::LoadDDNetInfoJson() /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1504:17 #3 0xc88032 in CServerBrowser::LoadDDNetInfo() /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1561:2 #4 0xa6ecd3 in CClient::LoadDDNetInfo() /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:2288:49 #5 0xa946d8 in CClient::Run() /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:2968:2 #6 0xafaa66 in main /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:4458:11 #7 0x7feb8817ad09 in __libc_start_main csu/../csu/libc-start.c:308:16 #8 0x440ef9 in _start (/home/chiller/Desktop/git/ddnet/asan/DDNet+0x440ef9) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/chiller/Desktop/git/ddnet/src/engine/external/json-parser/json.c:402:65 in ================================================================= ==76445==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62f0001410e7 at pc 0x000000c85d6e bp 0x7ffec9804f10 sp 0x7ffec9804f08 WRITE of size 1 at 0x62f0001410e7 thread T0 #0 0xc85d6d in CServerBrowser::LoadDDNetInfoJson() /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1501:15 #1 0xc87fd2 in CServerBrowser::LoadDDNetInfo() /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1561:2 #2 0xa6ecd3 in CClient::LoadDDNetInfo() /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:2288:49 #3 0xa946d8 in CClient::Run() /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:2968:2 #4 0xafaa66 in main /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:4458:11 #5 0x7ff7c5eb0d09 in __libc_start_main csu/../csu/libc-start.c:308:16 #6 0x440ef9 in _start (/home/chiller/Desktop/git/ddnet/asan/DDNet+0x440ef9) 0x62f0001410e7 is located 0 bytes to the right of 52455-byte region [0x62f000134400,0x62f0001410e7) allocated by thread T0 here: #0 0x4baf6d in malloc (/home/chiller/Desktop/git/ddnet/asan/DDNet+0x4baf6d) #1 0xc85ad0 in CServerBrowser::LoadDDNetInfoJson() /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1494:23 #2 0xc87fd2 in CServerBrowser::LoadDDNetInfo() /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1561:2 #3 0xa6ecd3 in CClient::LoadDDNetInfo() /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:2288:49 #4 0xa946d8 in CClient::Run() /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:2968:2 #5 0xafaa66 in main /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:4458:11 #6 0x7ff7c5eb0d09 in __libc_start_main csu/../csu/libc-start.c:308:16 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/chiller/Desktop/git/ddnet/src/engine/client/serverbrowser.cpp:1501:15 in CServerBrowser::LoadDDNetInfoJson() Shadow bytes around the buggy address: 0x0c5e800201c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c5e800201d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c5e800201e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c5e800201f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c5e80020200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c5e80020210: 00 00 00 00 00 00 00 00 00 00 00 00[07]fa fa fa 0x0c5e80020220: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5e80020230: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5e80020240: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5e80020250: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5e80020260: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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 Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 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 Shadow gap: cc ==76445==ABORTING