summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2021-05-31 13:05:39 -0600
committerAndreas Kling <kling@serenityos.org>2021-06-27 22:35:37 +0200
commit1f2720ce0d43e74100ef093cd0222780e8929bab (patch)
tree89cc675a49761eba81f3cbff821c38d72c07a181 /Userland/Applications/Spreadsheet
parent091628202f17015d3cb3c1813d5deb5139410a13 (diff)
downloadserenity-1f2720ce0d43e74100ef093cd0222780e8929bab.zip
LibJS: Avoid undefined static cast of negative values in to_u32
If the value we get after fmod in Value::to_u32 is negative, UBSAN complains that -N is out of bounds for u32. An extra static cast to i64 makes it stop complaining. An alternative implementation could add 2^32 if the fmod'd value is negative. Caught by UBSAN and oss-fuzz.
Diffstat (limited to 'Userland/Applications/Spreadsheet')
0 files changed, 0 insertions, 0 deletions