svn commit: r282928 - vendor/libarchive/dist/libarchive

Xin LI delphij at FreeBSD.org
Thu May 14 21:34:21 UTC 2015


Author: delphij
Date: Thu May 14 21:34:20 2015
New Revision: 282928
URL: https://svnweb.freebsd.org/changeset/base/282928

Log:
  Apply upstream changeset e6c9668:
  
  Add a check to archive_read_filter_consume to reject any
  attempts to move the file pointer by a negative amount.
  
  Note:  Either this or commit 3865cf2 provides a fix for
  Issue 394.

Modified:
  vendor/libarchive/dist/libarchive/archive_read.c

Modified: vendor/libarchive/dist/libarchive/archive_read.c
==============================================================================
--- vendor/libarchive/dist/libarchive/archive_read.c	Thu May 14 21:33:33 2015	(r282927)
+++ vendor/libarchive/dist/libarchive/archive_read.c	Thu May 14 21:34:20 2015	(r282928)
@@ -1394,6 +1394,8 @@ __archive_read_filter_consume(struct arc
 {
 	int64_t skipped;
 
+	if (request < 0)
+		return ARCHIVE_FATAL;
 	if (request == 0)
 		return 0;
 


More information about the svn-src-all mailing list