If I exit the jac console with EOF (Ctrl-D), it dumps
core. Example:
jac -w /dev/cdrom2 -o
jac 0.15 Console - (c) Cosimo Vagarini - Type 'h' or
'help' for instructions
jac 0.15> ^D
zsh: segmentation fault (core dumped) jac -w
/dev/cdrom2 -o
Here's the traceback from gdb:
#0 0x804c8bc in getbuff (buff=0x80553f8 "", len=255)
at jac_console.c:64
#1 0x804ca83 in jacconsole (cd_fd=3, arr_track=0xbffff93c)
at jac_console.c:124
#2 0x8049b05 in main (argc=4, argv=0xbffffb34) at
jac.c:322
#3 0x4006016b in __libc_start_main () from /lib/libc.so.6
Looks like the fix is fairly obvious: don't deref
'buftmp' if it's NULL!