(pax_decode_header): use SIZE_MAX.

Sync with GNU tar 281e03ec6ccb9e6da134f8f6b9a9ff51c42f5737.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-09-01 12:19:35 +03:00
parent c9288158bc
commit b9e7ab2f08

View File

@ -581,7 +581,7 @@ pax_decode_header (tar_super_t *archive, struct tar_sparse_file *file)
p = blk->buffer;
COPY_BUF (archive, blk, nbuf, p);
if (!decode_num (&u, nbuf, TYPE_MAXIMUM (size_t)))
if (!decode_num (&u, nbuf, SIZE_MAX))
{
/* malformed sparse archive member */
return FALSE;