diff options
author | fanf <fanf@FreeBSD.org> | 2009-11-27 17:53:49 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2009-11-27 17:53:49 +0000 |
commit | a855bffe7835f373e9b80eba00b37a339bac226e (patch) | |
tree | cbf318794c14cedc0cc0d22a5e52060d582900d8 /sys/arm | |
parent | 0f82c8e82191d8de01e6b77be445bf876ffaac26 (diff) | |
download | FreeBSD-src-a855bffe7835f373e9b80eba00b37a339bac226e.zip FreeBSD-src-a855bffe7835f373e9b80eba00b37a339bac226e.tar.gz |
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>
Diffstat (limited to 'sys/arm')
0 files changed, 0 insertions, 0 deletions