diff options
author | Tom <tomut@yahoo.com> | 2021-07-03 22:45:41 -0600 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-04 18:54:16 +0200 |
commit | dce18958b6103cf77705046e1dc8a51085b31bfa (patch) | |
tree | 333d9b050aef7a2482b44df396a0524544130abb /Userland/Libraries/LibJS/AST.cpp | |
parent | 0486e5895d3353dcc77614e65756af36c8814ff4 (diff) | |
download | serenity-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