This file - when passed to "lha x" will cause a segfault. Found with american fuzzy lop. Error seems similar to #36297 (invalid memory read access without clear reason).
This is the error message from Address Sanitizer:
==6984==ERROR: AddressSanitizer: SEGV on unknown address 0x7f0000000000 (pc 0x7f7e883607d0 bp 0x7ffedba54340 sp 0x7ffedba53dd0 T0)
==6984==The signal is caused by a READ memory access.
#0 0x7f7e883607cf in _IO_vfprintf /var/tmp/portage/sys-libs/glibc-2.23-r2/work/glibc-2.23/stdio-common/vfprintf.c:1632
#1 0x7f7e88361730 in buffered_vfprintf /var/tmp/portage/sys-libs/glibc-2.23-r2/work/glibc-2.23/stdio-common/vfprintf.c:2320
#2 0x7f7e8835ead4 in _IO_vfprintf /var/tmp/portage/sys-libs/glibc-2.23-r2/work/glibc-2.23/stdio-common/vfprintf.c:1293
#3 0x7f7e8840dd0a in __vfprintf_chk /var/tmp/portage/sys-libs/glibc-2.23-r2/work/glibc-2.23/debug/vfprintf_chk.c:33
#4 0x525cd8 in vfprintf /usr/include/bits/stdio2.h:127:10
#5 0x525cd8 in message /f/lha/lha/src/lharc.c:725
#6 0x52650b in cleanup /f/lha/lha/src/lharc.c:823:9
#7 0x5255fa in lha_exit /f/lha/lha/src/lharc.c:1461:5
#8 0x533a74 in make_table /f/lha/lha/src/maketbl.c:53:9
#9 0x5163e1 in read_c_len /f/lha/lha/src/huf.c:410:9
#10 0x5163e1 in decode_c_st1 /f/lha/lha/src/huf.c:424
#11 0x53d483 in decode /f/lha/lha/src/slide.c:438:13
#12 0x4faf2f in decode_lzhuf /f/lha/lha/src/extract.c:97:15
#13 0x52dfef in extract_one /f/lha/lha/src/lhext.c:463:23
#14 0x52dfef in cmd_extract /f/lha/lha/src/lhext.c:574
#15 0x524456 in main /f/lha/lha/src/lharc.c:680:9
#16 0x7f7e8833878f in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r2/work/glibc-2.23/csu/../csu/libc-start.c:289
#17 0x419888 in _start (/mnt/ram/lha/lha+0x419888)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /var/tmp/portage/sys-libs/glibc-2.23-r2/work/glibc-2.23/stdio-common/vfprintf.c:1632 in _IO_vfprintf
https://crashes.fuzzing-project.org/lha-segfault-message.lha
This file - when passed to "lha x" will cause a segfault. Found with american fuzzy lop. Error seems similar to #36297 (invalid memory read access without clear reason).
This is the error message from Address Sanitizer: