mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
pmm: add assert against use after free
This commit is contained in:
@@ -168,6 +168,7 @@ void *pmm_allocpage(int section) {
|
|||||||
page = freelists[i];
|
page = freelists[i];
|
||||||
if (page) {
|
if (page) {
|
||||||
removefromfreelist(page);
|
removefromfreelist(page);
|
||||||
|
__assert(page->refcount == 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user