]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: prefer idx_t to size_t
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 Jun 2025 03:34:29 +0000 (20:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 04:00:41 +0000 (21:00 -0700)
commit35d9bf6915bff5d88dd2246ae5a157db838c64f1
tree244dba18d4760b6237ff099c129098150a30b588
parentdbe4e2f42830fd5f90391472802309bbc9d1a8ef
od: prefer idx_t to size_t

This helps find overflow bugs when compiling with -fsanitize=undefined.
* src/od.c (struct tspec, bytes_per_block, PRINT_FIELDS)
(PRINT_TYPE, print_named_ascii, print_ascii, decode_one_format)
(skip, write_block, read_block, dump, main):
Use idx_t, not size_t.
src/od.c