Paul Eggert
61ee4578f5
* src/arscan.c (parse_int): Fix integer overflow test
...
Use intprops.h macros rather than trying to detect integer overflow by
hand, and doing it incorrectly. Example of incorrect behavior:
if val == 3689348814741910323, base == 10, UINTMAX_WIDTH == 64, and
*ptr == '0' then (val*base)+(*ptr-'0') yields 18446744073709551614
which is greater than val even though overflow has occurred.
Fortunately this bug could not be triggered on GNU/Linux hosts,
although it may be possible on platforms (if any) where struct ar_hdr
has members so large that they can represent integers that do not fit
int uintmax_t.
2024-03-28 19:08:13 -04:00
..
2024-03-24 16:23:28 -04:00
2024-01-06 18:06:09 -05:00
2024-03-28 19:08:13 -04:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-03-24 15:25:18 -04:00
2024-03-24 15:25:18 -04:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-02-04 18:26:21 -05:00
2024-01-08 23:31:58 -05:00
2024-01-08 23:31:58 -05:00
2024-03-24 14:08:59 -04:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2022-11-13 10:38:50 -05:00
2023-01-15 18:27:13 -05:00
2024-01-27 16:40:36 -05:00
2024-02-04 19:41:50 -05:00
2024-01-06 18:06:09 -05:00
2024-02-04 11:32:50 -05:00
2024-01-06 18:06:09 -05:00
2024-02-04 11:34:49 -05:00
2024-03-28 19:08:13 -04:00
2024-01-27 16:40:36 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-03-24 15:25:53 -04:00
2024-03-24 15:25:53 -04:00
2024-01-06 18:06:09 -05:00
2024-03-24 16:23:28 -04:00
2024-02-04 11:32:50 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-08 23:31:58 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-03-28 19:08:13 -04:00
2024-02-04 11:34:49 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00
2024-01-06 18:06:09 -05:00