pkg_info segfault Revision: 193189

Bruce Cran bruce at cran.org.uk
Mon Jun 1 20:28:25 UTC 2009


On Sun, 31 May 2009 17:34:05 -0400
Eitan Adler <eitanadlerlist at gmail.com> wrote:

> pkg_info --IwantAcookie
> Segmentation fault: 11 (core dumped)
> on FreeBSD 7.2-STABLE i386

getopt_long expects the array of options to be NULL-terminated, so it's
walking off the end.

-- 
Bruce Cran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c.diff
Type: text/x-patch
Size: 320 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090601/da5dfe8c/main.c.bin


More information about the freebsd-hackers mailing list