mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-14 19:06:55 +02:00
First, this isn't actually helpful, as we no longer store 32-bit values in JsonValue. They are stored as 64-bit values anyways. But more imporatantly, there was a bug here when trying to coerce an i64 to an i32. All negative values were cast to an i32, without checking if the value is below NumericLimits<i32>::min. (cherry picked from commit 7b3b608cafbed8049ac7a34104c66622c1445ffc)
12 KiB
12 KiB