Hello,

found that keynote(5) crashed with this stupid testcase:

# cd /usr/src/lib/libkeynote/
# make
# keynote verify -l keynote
Segmentation fault (core dumped)

#0  0x00000899d7d1e639 in keynote_parse_assertion (buf=Variable "buf" is not 
available.
) at ctype.h:157
157             return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & _S));
(gdb) bt
#0  0x00000899d7d1e639 in keynote_parse_assertion (buf=Variable "buf" is not 
available.
) at ctype.h:157
#1  0x00000899d7d1d99a in kn_add_assertion (sessid=Variable "sessid" is not 
available.
) at /usr/src/lib/libkeynote/auxil.c:383
#2  0x00000899d7d065bd in keynote_verify (argc=3, argv=0x7f7ffffdf450) at 
/usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-verify.c:257
#3  0x00000899d7d089e8 in main (argc=Variable "argc" is not available.
) at /usr/src/usr.bin/keynote/../../lib/libkeynote/keynote-main.c:61
Current language:  auto; currently minimal
(gdb)

reproduced on -current.

Sergey

Reply via email to