Descent3/cfile
Jan Engelhardt 69dbf5bca7 Resolve alloc-dealloc-mismatch in CFile::FreeSymbols
==89545==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x5020001007f0
    f0 operator delete(void*, unsigned long) (/lib64/libasan.so.8+0xfe1f8)
    f1 InfFile::FreeSymbols() $GIT/cfile/inffile.cpp:63
    f2 InfFile::Close() $GIT/cfile/inffile.cpp:115
    f3 LoadServerConfigFile() $GIT/Descent3/dedicated_server.cpp:355

0x5020001007f0 is located 0 bytes inside of 11-byte region [0x5020001007f0,0x5020001007fb)
allocated by thread T0 here:
    f0 operator new[](unsigned long) (/lib64/libasan.so.8+0xfd458)
    f1 InfFile::AddSymbol(char const*, char const*) $GIT/cfile/inffile.cpp:49
    f2 InfFile::ParseLine(char*, int) $GIT/cfile/inffile.cpp:187
2024-09-09 10:38:17 +02:00
..
tests [CMake] Add cfile tests to 'tests' folder in IDEs. 2024-08-20 20:03:02 +02:00
cfile.cpp Resolve use-after-free in cf_CopyFile 2024-08-30 01:25:56 +02:00
cfile.h Fix spello "it's" 2024-09-03 13:26:51 +02:00
CMakeLists.txt CMake: add all headers to target sources 2024-08-09 17:09:14 +02:00
hogfile.cpp Move HOG2 magic check into hogfile 2024-05-16 19:18:31 +03:00
hogfile.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
inffile.cpp Resolve alloc-dealloc-mismatch in CFile::FreeSymbols 2024-09-09 10:38:17 +02:00
inffile.h Move platform-specific defines and macros to own file crossplat.h 2024-08-20 23:09:27 +03:00