]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: fix theoretical size_t malloc overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jun 2025 15:15:42 +0000 (08:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 04:00:40 +0000 (21:00 -0700)
commit0d1c25d1cb6d0ce119775368a0fabc7644393f6e
tree0491997fd1cd3d8d1e7e9272758ce4ae1feab27b
parent2a08ab2bd538aed5144522a45eb168174288a334
od: fix theoretical size_t malloc overflow

* src/od.c (dump, dump_strings): Use idx_t allocators
rather than size_t allocators, to avoid unchecked integer
overflow on theoretical platforms where SIZE_MAX < IDX_MAX.
src/od.c