diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-09 13:27:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-09 13:29:41 +0100 |
commit | 1381720d1dfeed795a4021a261ac91bd677bfde0 (patch) | |
tree | 3a024c2c6e8be732ff2b854133bdddb99a6aae57 /Userland/Libraries/LibLine/KeyCallbackMachine.cpp | |
parent | 38fc522f5d22952959b754015a1d52d6e44977f0 (diff) | |
download | serenity-1381720d1dfeed795a4021a261ac91bd677bfde0.zip |
UserspaceEmulator: Don't assume entire malloc block is chunked
Accesses in the header (or trailing padding) of a malloc block should
not be associated with any mallocation since only the chunk-sized slots
actually get returned by malloc.
Basically, allow address-to-chunk lookup to fail, and handle such
failures gracefully at call sites.
Fixes #5706.
Diffstat (limited to 'Userland/Libraries/LibLine/KeyCallbackMachine.cpp')
0 files changed, 0 insertions, 0 deletions