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));
|
Header = PTR_NOFFSET(Ptr, sizeof(POOL_HEADER));
|
||||||
if (Header->Tag != Tag) {
|
if (Header->Tag != Tag) {
|
||||||
KeBugCheck(
|
KeBugCheck(
|
||||||
BUGCHECK_MISC,
|
BUGCHECK_BAD_FREE,
|
||||||
"tag does not match pool header\n"
|
"tag does not match pool header\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -290,7 +290,7 @@ ExFreePoolWithTag(VOID *Ptr, ULONG Tag)
|
|||||||
Page = Header->Page;
|
Page = Header->Page;
|
||||||
if (Page == NULL) {
|
if (Page == NULL) {
|
||||||
KeBugCheck(
|
KeBugCheck(
|
||||||
BUGCHECK_MISC,
|
BUGCHECK_BAD_FREE,
|
||||||
"attempted free on malformed header\n"
|
"attempted free on malformed header\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user