tar: avoid strtoul().
commit20b617a8aba25d244705137bfc8882224b0a9567
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 1 Sep 2024 09:32:59 +0000 (1 12:32 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 5 Oct 2024 12:07:13 +0000 (5 15:07 +0300)
treeb384ecb6703d975fa3616592ec4485936457556a
parent79b10fc8a79cb10959b2598fdcdb984318340f20
tar: avoid strtoul().

This is part of the general trend to prefer signed integer types,
to allow better runtime checking with -fsanitize=undefined etc.

  * (struct tar_stat_info): ue intmax_t, not unsigned, for sparse major
    and minor.
  * (tar_sparse_major): likewise.
  * (tar_sparse_minor): likewise.

Sync with GNU tar 4642cd04edbd57414e004920fa4976d9f3be6206.

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