Hi Thanks a lot!
Forwarded to upstream in this mail. I hope he have the email left. Best regards, // Ola On Sat, Oct 20, 2007 at 11:14:55PM +0200, Jose Luis Gonzalez wrote: > Package: pnscan > Version: 1.11-3 > Severity: normal > Tags: upstream patch > > pnscan segfaults when running without parameters and an empty line > as input: > > $ echo | pnscan > Segmentation fault (core dumped) > > $ gdb /usr/bin/pnscan core > [...] > Program terminated with signal 11, Segmentation fault. > #0 0xb7e17b26 in strtok_r () from /lib/tls/libc.so.6 > > This is a bug in the original program: > > ==================================================================== > > --- pnscan-wrong.c 2007-10-20 23:08:00.000000000 +0200 > +++ pnscan.c 2007-10-20 23:08:06.000000000 +0200 > @@ -816,7 +816,6 @@ > } > > host = strtok_r(buf, " \t\n\r", &tokp); > - serv = strtok_r(NULL, " \t\n\r", &tokp); > > if (host == NULL || host[0] == '#') > continue; > @@ -828,6 +827,8 @@ > continue; > } > > + serv = strtok_r(NULL, " \t\n\r", &tokp); > + > if (serv == NULL) > { > if (first_port == 0) > > ======================================================================= > > Please forward to upstream. > > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | http://opalsys.net/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]