Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2009 17:53:49 +0000 (UTC)
From:      Tony Finch <fanf@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.bin/unifdef unifdef.c
Message-ID:  <200911271754.nARHs777000598@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
fanf        2009-11-27 17:53:49 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/unifdef      unifdef.c 
  Log:
  SVN rev 199867 on 2009-11-27 17:53:49Z by fanf
  
  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>
  
  Revision  Changes    Path
  1.25      +8 -4      src/usr.bin/unifdef/unifdef.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911271754.nARHs777000598>