version: fig2dev Version 3.2.9a
system: ubuntu22.04
use this command to reproduce: fig2dev -L ge ./poc
message from ASAN:
==2983639==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x560106e80b0e bp 0x6080000000a0 sp 0x7ffdfa3b6bc0 T0)
==2983639==The signal is caused by a READ memory access.
==2983639==Hint: address points to the zero page.
#0 0x560106e80b0e in genge_itp_spline /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genge.c:249
#1 0x560106e80b0e in genge_spline /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genge.c:215
#2 0x560106dc5536 in gendev_objects /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/fig2dev.c:1038
#3 0x560106dc5536 in main /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/fig2dev.c:538
#4 0x7f50037ced8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#5 0x7f50037cee3f in __libc_start_main_impl ../csu/libc-start.c:392
#6 0x560106dc6f54 in _start (/home/ubuntu/target_program/fig2dev-3.2.9a/fig2dev/output5/asan_fig2dev+0x6ff54)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genge.c:249 in genge_itp_spline
==2983639==ABORTING
Fixed with commit [2bd6c0].
Related
Commit: [2bd6c0]