diff options
Diffstat (limited to 'libarchive/archive_read.c')
-rw-r--r-- | libarchive/archive_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read.c b/libarchive/archive_read.c index b1d4914..987295f 100644 --- a/libarchive/archive_read.c +++ b/libarchive/archive_read.c @@ -633,7 +633,7 @@ archive_read_data(struct archive *_a, void *buff, size_t s) } /* Compute the amount of zero padding needed. */ - if (a->read_data_output_offset + s < + if (a->read_data_output_offset + (int64_t)s < a->read_data_offset) { len = s; } else if (a->read_data_output_offset < |