SQLite Forum

memory leaks in sqlite3.c:23545
Login
Version: SQLite version 3.32.0 2020-04-06 18:16:31

OS: Ubuntu 16.04 LTS

POC:  https://github.com/puppet-meteor/NLP_POC/blob/master/sqlite3/POC_6_000613

cmd: ./sqlite3 < POC 

ASAN log:

=================================================================
==1102==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 112 byte(s) in 1 object(s) allocated from:

    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x4616f5 in sqlite3MemMalloc ../sqlite3.c:23545
    #2 0x4626d9 in mallocWithAlarm ../sqlite3.c:27427
    #3 0x46281e in sqlite3Malloc ../sqlite3.c:27457
    #4 0x462faf in sqlite3Realloc ../sqlite3.c:27627
    #5 0x4631a3 in sqlite3_realloc64 ../sqlite3.c:27684
    #6 0x43a5e9 in import_append_char ../shell.c:13151
    #7 0x44b2b5 in do_meta_command ../shell.c:16340
    #8 0x455fb1 in process_input ../shell.c:18527
    #9 0x4588e6 in main ../shell.c:19330
    #10 0x7ffff617c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

SUMMARY: AddressSanitizer: 112 byte(s) leaked in 1 allocation(s)