Date: Thu, 21 Oct 2004 14:34:37 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Colin Percival <cperciva@FreeBSD.org>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/xargs strnsubst.c Message-ID: <p06110418bd9db18541eb@[128.113.24.47]> In-Reply-To: <200410211702.i9LH2cQq057419@repoman.freebsd.org> References: <200410211702.i9LH2cQq057419@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06110418bd9db18541eb>