Fix signed integer overflow undefined behaviour in decNumber.c
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60691 $ ./jq <<< 0E2202012202 src/decNumber/decNumber.c:598:18: runtime error: signed integer overflow: 440402440 + 1761609760 cannot be represented in type 'int' 0E+999999999 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60683 $ ./jq <<< 5E7657765755 src/decNumber/decNumber.c:598:18: runtime error: left shift of 765776575 by 3 places cannot be represented in type 'int' src/decNumber/decNumber.c:598:18: runtime error: signed integer overflow: 1531553150 + 1831245304 cannot be represented in type 'int' 1.7976931348623157e+308
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+4 added−2 removed
- other:+4 added−2 removed