Handle invalid sparse entries in pax header
commitcc8f5f78b2437f50f0972433275b910b10d46717
authorSergey Poznyakoff <gray@gnu.org>
Sat, 28 Aug 2021 11:15:25 +0000 (28 14:15 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Sat, 28 Aug 2021 11:15:25 +0000 (28 14:15 +0300)
treedc96b83f90d6fb6e0b440ad2329876775cff2a12
parent193eb8f81d8fbf7b1f3bd2b93f60882e56325d72
Handle invalid sparse entries in pax header

* src/sparse.c (pax_decode_header): Check if sp.offset+sp.numbytes
falls within the reported file size.  Check for possible integer
overflow.
src/sparse.c