(blocking_factor, record_size): change type.
commit465d8b962afe09d80b4104f0fedd94b403deb2a7
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 1 Sep 2024 09:54:11 +0000 (1 12:54 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 5 Oct 2024 12:07:13 +0000 (5 15:07 +0300)
tree658448f22cde6ccd5620ffcfb88d904de8cbfae5
parentebbff2266aad54d9e485f529749dd536ec15af80
(blocking_factor, record_size): change type.

Don't limit blocking factor to INT_MAX.
Prefer signed type for record_size.
Do not exceed IDX_MAX or SSIZE_MAX for record_size;
the SSIZE_MAX limit is needed so that "read" calls behave sensibly.

Sync with GNU tar 3ffe2eb0738504aabee0d3b4d0c03e01739b9d6c.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/vfs/tar/tar-internal.h
src/vfs/tar/tar.c