commit | 40d6acce64009cbd71b8281b87c715bd15bfcb11 | [log] [tgz] |
---|---|---|
author | Chia-hung Duan <chiahungduan@google.com> | Thu May 25 17:36:10 2023 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Thu May 25 11:11:28 2023 -0700 |
tree | 77285ba43eaf511fd9f6fad838fca1688bcbe2b4 | |
parent | 82f99b9c87e6784e907144c8de55843fc3ee3610 [diff] |
[scudo] releaseToOSMaybe can fail if it can't allocate PageMap PageMap is allocated with MAP_ALLOWNOMEM if there's no static buffer left. So it can be failed and return nullptr without any assertion triggered. Instead of crashing in the releaseToOSMaybe in the middle, just return and let the program handles the page failure. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D151379 GitOrigin-RevId: 11ea40cff5413057d823a4b3ac5ac419b674dc56