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

Garance A Drosihn drosih at rpi.edu
Thu Oct 21 11:34:41 PDT 2004


At 5:02 PM +0000 10/21/04, Colin Percival wrote:
>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.

Thanks.  I think this is a much better solution!

-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu


More information about the cvs-all mailing list