aboutsummaryrefslogtreecommitdiff
path: root/src/stage1
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-06-30 10:34:14 +0200
committerVeikka Tuominen <git@vexu.eu>2021-07-01 22:35:19 +0300
commit1fc877fd9473c50a51bc616118250a9fc64d3da0 (patch)
treec6dadf06ac0392e5f1d5b4d133b3e331e21dfa77 /src/stage1
parent628f490c59449e38fcc9122968c385997b9e788b (diff)
downloadzig-1fc877fd9473c50a51bc616118250a9fc64d3da0.tar.gz
zig-1fc877fd9473c50a51bc616118250a9fc64d3da0.zip
std: Catch and handle overflow in json parser
When a floating-point value with no fractional part is shoved into an integer type we must check whether it fits or not before calling `@floatToInt` as the builtin panics in case of overflow. Catch the error and bubble it up to the caller.
Diffstat (limited to 'src/stage1')
0 files changed, 0 insertions, 0 deletions