diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-09-17 12:24:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-09-17 12:25:32 -0700 |
commit | 6462fa8be51c304d9273ca6943b49f44616455a7 (patch) | |
tree | 096499f1cc53b7cd02eac9c2185e2520d0361a69 /gnulib.modules | |
parent | 2f7d215539637d8190ed57868980988086883433 (diff) | |
download | paxutils-6462fa8be51c304d9273ca6943b49f44616455a7.tar.gz |
Don’t overallocate rtapelib sprintf buffers
* lib/rtapelib.c (rmt_lseek__, rmt_ioctl__): Don’t promote
arguments of INT_STRLEN_BOUND, as that might over-allocate the
resulting buffers. This is not an efficiency problem because any
overallocations are tiny. However, it is confusing (to me, at
least) to have code that unnecessarily overallocates, as that
makes it harder to reason about integer or buffer overflow.
Diffstat (limited to 'gnulib.modules')
0 files changed, 0 insertions, 0 deletions