mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(pax_decode_header): use SIZE_MAX.
Sync with GNU tar 281e03ec6ccb9e6da134f8f6b9a9ff51c42f5737. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c9288158bc
commit
b9e7ab2f08
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user