ptos: pool: Use BUGCHECK_BAD_FREE on malformed headers

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-13 22:03:53 -04:00
parent 3d06ed9edb
commit 823586180c
+2 -2
View File
@@ -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"
); );
} }