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:
parent
c792c52ca1
commit
95b982db7d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user