freebsd-nq/usr.bin/unifdef
Tony Finch 137f2acad4 unifdef: fix invalid array access when nesting limit exceeded
If the number of nested #if blocks exceeds 64, nest() increments
the nesting depth and then reports an error.  The message includes
the line number for the start of the current #if block, which is
read from past the end of the relevant array.

Avoid the out-of-bounds read by reporting the error and exiting
before the nesting depth has a chance to increase.

Submitted by: Jonathan Nieder <jrnieder@gmail.com>
2009-11-27 17:53:49 +00:00
..
Makefile
unifdef.1 Update unifdef to my upstream version 1.188 2009-11-25 20:23:18 +00:00
unifdef.c unifdef: fix invalid array access when nesting limit exceeded 2009-11-27 17:53:49 +00:00
unifdefall.sh unifdefall: optimise the loop that builds the unifdef command. 2009-11-26 19:08:33 +00:00