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;
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to