Discussion:
dispwin - bad command line option makes dispwin segfault
Jörg Frings-Fürst
2014-09-10 14:07:49 UTC
Permalink
Hello,

in Debian we have the bug[1].

If dispwin is started with "dispwin -d" it runs into a segfault.

The output of gdb is

####
(gdb) file dispwin
Reading symbols from dispwin...Reading symbols
from /usr/lib/debug/.build-id/0c/5af1737443a64c21ca2a3eca93df00da9a623c.debug...done.
done.
(gdb) run -d
Starting program: /usr/bin/dispwin -d
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x000000000040595d in main (argc=2, argv=0x7fffffffdf18) at
spectro/dispwin.c:5496
5496 if (strncmp(na,"web",3) == 0
(gdb)
####

na is NULL at this point.

I have added the line

if(na == NULL) usage("-d parameter missing");

before. The patch file is attached.


CU
Jörg
--
pgp Fingerprint: 7D13 3C60 0A10 DBE1 51F8 EBCB 422B 44B0 BE58 1B6E
pgp Key: BE581B6E
CAcert Key S/N: 0E:D4:56

Jörg Frings-FÌrst
D-54526 Niederkail

Threema: SYR8SJXB

IRC: j_f-f-0M+Kt+***@public.gmane.org
j_f-f-***@public.gmane.org
Jörg Frings-Fürst
2014-09-10 14:13:49 UTC
Permalink
Hi,

sorry. Here is the missing link:

CU
Jörg


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700253
Post by Jörg Frings-Fürst
Hello,
in Debian we have the bug[1].
[...]
--
pgp Fingerprint: 7D13 3C60 0A10 DBE1 51F8 EBCB 422B 44B0 BE58 1B6E
pgp Key: BE581B6E
CAcert Key S/N: 0E:D4:56

Jörg Frings-FÌrst
D-54526 Niederkail

Threema: SYR8SJXB

IRC: j_f-f-0M+Kt+***@public.gmane.org
j_f-f-***@public.gmane.org
Loading...