freebsd-nq/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
Makefile.depend
ndiscvt.8
ndiscvt.c
ndisgen.8
ndisgen.sh
windrv_stub.c