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

View File

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