(tar_xheader_read): cleaner overflow checking.
commit40c912b9b71ca2a533a0273f4e809dcbea9cb6bf
authorAndrew Borodin <aborodin@vmail.ru>
Sat, 31 Aug 2024 10:43:17 +0000 (31 13:43 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 5 Oct 2024 12:07:13 +0000 (5 15:07 +0300)
tree6203954627fb98b9f8da03967959f7f21bf955de
parent9e44b293f457bf20d0486429a3cd955875bc4739
(tar_xheader_read): cleaner overflow checking.

Prefer ckd_add() to doing overflow checking by hand.

Sync with GNU tar 927d67855e2e83b6b06eb9095f65e4e695d6af7e.

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