diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-23 00:05:51 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-23 00:07:27 -0800 |
commit | 38286df5370dce0351a9afac6e2fac39b47ab1a3 (patch) | |
tree | 60958d3a72da6d375d24ffb4dfb058bf366e2615 /tests/misc/ptx-overrun.sh | |
parent | b50a151346c42816034b5c26266eb753b7dbe737 (diff) | |
download | coreutils-38286df5370dce0351a9afac6e2fac39b47ab1a3.tar.xz |
pr: fix integer overflow in buffer size calcs
Problem reported by Marcel Böhme (Bug#24996).
* configure.ac (WERROR_CFLAGS): Avoid -Wtype-limits.
* src/pr.c (col_sep_string): Now a const pointer. All uses changed.
(integer_overflow): New function.
(separator_string, main, init_parameters, init_store_cols):
Check for integer overflow.
(align_column, read_line, print_stored): Avoid integer overflow.
Diffstat (limited to 'tests/misc/ptx-overrun.sh')
0 files changed, 0 insertions, 0 deletions