Tobias Stoeckmann
0fe9fdece7
maint: avoid signed integer overflows
...
Since -LONG_MIN results in LONG_MIN again, the operation itself is
a signed integer overflow.
This can be observed with the following calls (best if compiled
with -ftrapv or -fsanitize=undefined):
$ numfmt --padding=-9223372036854775808
$ seq 1e-9223372036854775808
Technically, the change in seq "reduces" the precision, but a double
or long double that small would be represented as 0 anyway.
* src/numfmt.c: Explicitly disallow --padding=LONG_MIN.
* src/seq.c: Treat 1e$LONG_MIN as 1e-$LONG_MAX.
* tests/misc/numfmt.pl: Add a test case.
* tests/misc/seq-precision.sh: Likewise.
Fixes https://bugs.gnu.org/41850
2020-06-15 23:07:03 +01:00
..
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-02-29 22:39:47 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-03-04 18:00:38 +00:00
2020-03-01 22:02:39 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-06-15 23:07:03 +01:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-03-01 22:02:39 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-06-15 23:07:03 +01:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-02-29 22:45:00 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-03-01 23:36:05 +00:00
2020-03-01 23:36:05 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-04-02 16:10:05 +01:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00
2020-01-01 14:16:56 +00:00