summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/AST.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-07-03 22:45:41 -0600
committerGunnar Beutner <gunnar@beutner.name>2021-07-04 18:54:16 +0200
commitdce18958b6103cf77705046e1dc8a51085b31bfa (patch)
tree333d9b050aef7a2482b44df396a0524544130abb /Userland/Libraries/LibJS/AST.cpp
parent0486e5895d3353dcc77614e65756af36c8814ff4 (diff)
downloadserenity-dce18958b6103cf77705046e1dc8a51085b31bfa.zip
Kernel: Fix safe_memset not setting the last few bytes in some cases
Because the remainder variable will always be 0 unless a fault happened we should not use it to decide if we have nothing left to memset when finishing the fast path. This caused not all bytes to be zeroed if the size was not an exact multiple of sizeof(size_t). Fixes #8352
Diffstat (limited to 'Userland/Libraries/LibJS/AST.cpp')
0 files changed, 0 insertions, 0 deletions