diff options
author | Kun Qin <kuqin@microsoft.com> | 2024-07-16 15:50:01 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-17 20:56:50 +0000 |
commit | cee9d1b16bdcd7fe8bad6b39fe18af0a15941ca4 (patch) | |
tree | 3f963e0aaafce89287f8c8dcd9ea181d668c7f91 /UnitTestFrameworkPkg | |
parent | 0adc868b362873eb7c749f3ac6c38f9e293af10d (diff) | |
download | edk2-cee9d1b16bdcd7fe8bad6b39fe18af0a15941ca4.zip edk2-cee9d1b16bdcd7fe8bad6b39fe18af0a15941ca4.tar.gz edk2-cee9d1b16bdcd7fe8bad6b39fe18af0a15941ca4.tar.bz2 |
MdeModulePkg: DxeCore: Fix Use-After-Free guard causing page fault
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2411
With Use-After-Free heap guard feature enabled, the DxeCore would blindly
attempt to "level-up" when the `GuardAllFreedPages` inspect a non-max
level table entry from the last loop. This could cause the next round of
inspection to dereference a potentially null pointer and as such causing
a page fault.
This change adds a null pointer check to prevent such case from happening.
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Diffstat (limited to 'UnitTestFrameworkPkg')
0 files changed, 0 insertions, 0 deletions