Closed
Description
Sorry for that I didn't reply in my last issue immediately because I had some other stuffs to handle then. Well ,it seems that you have found the SEGV signal and fixed it. I found another problem here ,it is a memory leak issue.
The program I ran is test_bgzf in test directory, the input file is bgziptest.txt.gz in the same directory.
The command line is :./test_bgzf ./bgziptest.txt
The detail information is displayed as :
=================================================================
==11095==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f7e77d58961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
#1 0x425d8e in bgzf_getline /home/mfc_fuzz/htslib/bgzf.c:1800
#2 0x40b885 in test_bgzf_getline test/test_bgzf.c:691
#3 0x40c72f in main test/test_bgzf.c:774
#4 0x7f7e770ad82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f7e77d58961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
#1 0x425d8e in bgzf_getline /home/mfc_fuzz/htslib/bgzf.c:1800
#2 0x40b885 in test_bgzf_getline test/test_bgzf.c:691
#3 0x40c711 in main test/test_bgzf.c:773
#4 0x7f7e770ad82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f7e77d58961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
#1 0x425d8e in bgzf_getline /home/mfc_fuzz/htslib/bgzf.c:1800
#2 0x40b885 in test_bgzf_getline test/test_bgzf.c:691
#3 0x40c74d in main test/test_bgzf.c:775
#4 0x7f7e770ad82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Metadata
Metadata
Assignees
Labels
No labels