1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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.
This commit is contained in:
Xin LI 2015-05-14 21:34:20 +00:00
parent c792c52ca1
commit 95b982db7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/libarchive/dist/; revision=282928

View File

@ -1394,6 +1394,8 @@ __archive_read_filter_consume(struct archive_read_filter * filter,
{ {
int64_t skipped; int64_t skipped;
if (request < 0)
return ARCHIVE_FATAL;
if (request == 0) if (request == 0)
return 0; return 0;