commit | 5277523eb79aaa656c847cc85c580e609e715955 | [log] [tgz] |
---|---|---|
author | Rasha Eqbal <rashaeqbal@google.com> | Tue Feb 21 22:50:38 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 21 22:50:38 2023 +0000 |
tree | 4f2d6bb395bb89254e6fc5838056c9fd9d042bf1 | |
parent | e4840cad87de745752239f687667227e96d2212b [diff] |
[kernel][heap] Check for valid size before panic When HEAP_PANIC_ON_ALLOC_FAIL is enabled (with debug level > 2), alloc failures result in panics. Some core-tests however seem to be relying on allocations to fail with zero size or large sizes. Only panic when the requested size falls within the permissible range. Change-Id: Ic72cb08f868335cea10e780516b2efe394b8fd7d Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/807347 Reviewed-by: Adrian Danis <adanis@google.com> Commit-Queue: Rasha Eqbal <rashaeqbal@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.