Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Dan McMahill <dmcmahill@netbsd.org>
List: source-changes
Date: 07/24/2000 23:09:17
Module Name:	basesrc
Committed By:	dmcmahill
Date:		Mon Jul 24 20:09:17 UTC 2000

Modified Files:
	basesrc/usr.sbin/pkg_install/add: extract.c

Log Message:
Fix a buffer overrun bug.  The TOOBIG macro had some hard coded constants
which needed to be set at compile time but weren't (to handle the case where
TAR_CMD was set to something other than "tar", eg "gtar".  In addition to
the constants being wrong, the wrong directory name was being examined for
its string length.

Add a few comments to hopefully avoid having this problem come back.


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 basesrc/usr.sbin/pkg_install/add/extract.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.