freebsd-skq/usr.sbin/ndiscvt
Dmitry Marakasov a40531fcf8 Fix crash on parsing some inf files
ndiscvt uses 16 entry array for words into which it parses
comma-separated lists of strings, like AddReg line in

    [somesection]
        AddReg = foo.reg, bar.reg, baz.reg, quiz.reg

Overflows were not checked so it crashed on a line with 17 words
encountered in some Broadcom/Dell Wireless 1704 802.11b-g-n driver

So extend the array up to 32 entries and add an overflow check.

Reviewed by:	bapt
Approved by:	bapt
MFC after:	2 weeks
Differential Revision:	D3713
2015-09-22 16:59:41 +00:00
..
inf-parse.y
inf-token.l
inf.c Fix crash on parsing some inf files 2015-09-22 16:59:41 +00:00
inf.h Fix crash on parsing some inf files 2015-09-22 16:59:41 +00:00
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
ndiscvt.8 use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ndiscvt.c
ndisgen.8 use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ndisgen.sh
windrv_stub.c