Date: Thu, 14 May 2015 21:34:21 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r282928 - vendor/libarchive/dist/libarchive Message-ID: <201505142134.t4ELYLbw068430@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505142134.t4ELYLbw068430>