ptos: pool: Use BUGCHECK_BAD_FREE on malformed headers
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -282,7 +282,7 @@ ExFreePoolWithTag(VOID *Ptr, ULONG Tag)
|
||||
Header = PTR_NOFFSET(Ptr, sizeof(POOL_HEADER));
|
||||
if (Header->Tag != Tag) {
|
||||
KeBugCheck(
|
||||
BUGCHECK_MISC,
|
||||
BUGCHECK_BAD_FREE,
|
||||
"tag does not match pool header\n"
|
||||
);
|
||||
}
|
||||
@@ -290,7 +290,7 @@ ExFreePoolWithTag(VOID *Ptr, ULONG Tag)
|
||||
Page = Header->Page;
|
||||
if (Page == NULL) {
|
||||
KeBugCheck(
|
||||
BUGCHECK_MISC,
|
||||
BUGCHECK_BAD_FREE,
|
||||
"attempted free on malformed header\n"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user