svn commit: r191525 - head/lib/libarchive

Tim Kientzle kientzle at FreeBSD.org
Sun Apr 26 18:43:50 UTC 2009


Author: kientzle
Date: Sun Apr 26 18:43:49 2009
New Revision: 191525
URL: http://svn.freebsd.org/changeset/base/191525

Log:
  Exit with ARCHIVE_FATAL if the ISO image is truncated.

Modified:
  head/lib/libarchive/archive_read_support_format_iso9660.c

Modified: head/lib/libarchive/archive_read_support_format_iso9660.c
==============================================================================
--- head/lib/libarchive/archive_read_support_format_iso9660.c	Sun Apr 26 18:24:14 2009	(r191524)
+++ head/lib/libarchive/archive_read_support_format_iso9660.c	Sun Apr 26 18:43:49 2009	(r191525)
@@ -683,7 +683,7 @@ archive_read_format_iso9660_read_data(st
 	if (bytes_read == 0)
 		archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
 		    "Truncated input file");
-	if (buff == NULL)
+	if (*buff == NULL)
 		return (ARCHIVE_FATAL);
 	if (bytes_read > iso9660->entry_bytes_remaining)
 		bytes_read = iso9660->entry_bytes_remaining;


More information about the svn-src-all mailing list