Paul Eggert
e94d95075d
dd: improve integer overflow checking
...
* src/dd.c: Prefer signed to unsigned types where either will do,
as this helps improve checking with gcc -fsanitize=undefined.
Limit the signed types to their intended ranges.
(MAX_BLOCKSIZE): Don’t exceed IDX_MAX - slop either.
(input_offset_overflow): Remove; overflow now denoted by negative.
(parse_integer): Return INTMAX_MAX on overflow, instead of unspecified.
Do not falsely report overflow for ‘00x99999999999999999999999999999’.
* tests/dd/misc.sh: New test for 00xBIG.
* tests/dd/skip-seek-past-file.sh: Adjust to new diagnostic wording.
New test for BIGxBIG.
2022-01-27 13:04:14 -08:00
..
2021-12-18 09:35:04 -08:00
2021-03-29 14:10:09 +01:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-27 13:04:14 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2021-11-18 21:37:38 -08:00
2022-01-02 16:15:55 +00:00
2022-01-14 17:44:49 -08:00
2022-01-14 14:09:25 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2021-10-31 22:36:46 -07:00
2022-01-14 15:17:54 -08:00
2021-09-15 15:35:53 +01:00
2022-01-27 13:07:28 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-27 13:04:14 -08:00
2022-01-07 14:56:55 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2005-07-18 07:52:37 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2021-10-31 22:36:46 -07:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-14 14:09:25 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-13 11:36:51 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2012-01-09 21:51:59 +01:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-14 14:09:25 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2021-12-18 09:35:04 -08:00
2022-01-02 16:15:55 +00:00
2022-01-13 11:36:51 -08:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2022-01-02 16:15:55 +00:00
2012-01-09 21:51:59 +01:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00
2022-01-02 16:15:55 +00:00