Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/gnu/usr.bin/tar Pull up revision 1.5->1.6:
details: https://anonhg.NetBSD.org/src/rev/762d13454bdf
branches: netbsd-1-4
changeset: 469283:762d13454bdf
user: he <he%NetBSD.org@localhost>
date: Tue Aug 24 19:58:35 1999 +0000
description:
Pull up revision 1.5->1.6:
Cast off_t to size_t when passing arguments to functions expecting
a size_t. This fixes errors due to memory corruption when
extracting archives with gtar style long file names on big endian
machines. Fixes PR#8229. (bad)
diffstat:
gnu/usr.bin/tar/list.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r d7338335a535 -r 762d13454bdf gnu/usr.bin/tar/list.c
--- a/gnu/usr.bin/tar/list.c Tue Aug 24 19:57:48 1999 +0000
+++ b/gnu/usr.bin/tar/list.c Tue Aug 24 19:58:35 1999 +0000
@@ -18,7 +18,7 @@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
-static char rcsid[] = "$Id: list.c,v 1.5 1997/06/06 07:59:52 jeremy Exp $";
+static char rcsid[] = "$Id: list.c,v 1.5.4.1 1999/08/24 19:58:35 he Exp $";
#endif /* not lint */
/*
@@ -384,7 +384,7 @@
userec (header);
if (*longp)
free (*longp);
- bp = *longp = (char *) ck_malloc (hstat.st_size);
+ bp = *longp = (char *) ck_malloc ((size_t)hstat.st_size);
for (size = hstat.st_size;
size > 0;
Home |
Main Index |
Thread Index |
Old Index