From owner-cvs-all Sat Feb 17 17: 6:19 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 827D937B401; Sat, 17 Feb 2001 17:06:13 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1I16DT69116; Sat, 17 Feb 2001 17:06:13 -0800 (PST) (envelope-from bde) Message-Id: <200102180106.f1I16DT69116@freefall.freebsd.org> From: Bruce Evans Date: Sat, 17 Feb 2001 17:06:13 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/gnu/usr.bin/tar diffarch.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bde 2001/02/17 17:06:13 PST Modified files: gnu/usr.bin/tar diffarch.c Log: Quick fix for attempts to free non-malloc()ed memory. The variables current_file_name and current_link_name sometimes point into the middle of malloc()ed memory and sometimes point to alloca()ed memory, but free() is sometimes called on them. This seems to be harmless for the usual tar operations, but it is usually fatal for `tar -W'. E.g., for `cd /etc; tar Wcf /tmp/foo rc', at the start of verify_volume(), current_file_name points to alloca()ed memory, and tar attempts to free it. Revision Changes Path 1.3 +4 -0 src/gnu/usr.bin/tar/diffarch.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message