forked from AbleOS/holey-bytes
removed UB
This commit is contained in:
parent
f85e3eb062
commit
2c20c7c859
|
@ -30,7 +30,7 @@ impl Memory {
|
|||
let mut entry = PtEntry::new(
|
||||
{
|
||||
let layout = alloc::alloc::Layout::from_size_align_unchecked(4096, 4096);
|
||||
let ptr = alloc::alloc::alloc(layout);
|
||||
let ptr = alloc::alloc::alloc_zeroed(layout);
|
||||
if ptr.is_null() {
|
||||
alloc::alloc::handle_alloc_error(layout);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue