From owner-cvs-src@FreeBSD.ORG Thu Oct 21 17:02:38 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 864AB16A4CE; Thu, 21 Oct 2004 17:02:38 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 666E843D48; Thu, 21 Oct 2004 17:02:38 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9LH2cRh057420; Thu, 21 Oct 2004 17:02:38 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9LH2cQq057419; Thu, 21 Oct 2004 17:02:38 GMT (envelope-from cperciva) Message-Id: <200410211702.i9LH2cQq057419@repoman.freebsd.org> From: Colin Percival Date: Thu, 21 Oct 2004 17:02:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/usr.bin/xargs strnsubst.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 17:02:38 -0000 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