cvs commit: src/usr.bin/xargs strnsubst.c

Colin Percival cperciva at FreeBSD.org
Thu Oct 21 10:02:38 PDT 2004


cperciva    2004-10-21 17:02:38 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    usr.bin/xargs        strnsubst.c 
  Log:
  Fix a buffer overflow.  This is the same bug as is corrected in rev.
  1.7, but the correction is different: Rather than making sure the
  string we're constructing doesn't grow too large, we realloc() to make
  sure the buffer is large enough.
  
  This violates the IEEE Std 1003.1-2004 standard, but retains backwards
  compatability.
  
  Approved by:    re (scottl)
  
  Revision  Changes    Path
  1.6.8.1   +12 -0     src/usr.bin/xargs/strnsubst.c


More information about the cvs-src mailing list