def METHOD_NAME(ql: Qiling):
    heap = QlSanitizedMemoryHeap(ql, ql.os.heap, fault_rate=0)
    heap.oob_handler      = lambda *args: my_abort(f'Out-of-bounds read detected')
    heap.bo_handler       = lambda *args: my_abort(f'Buffer overflow/underflow detected')
    heap.bad_free_handler = lambda *args: my_abort(f'Double free or bad free detected')
    heap.uaf_handler      = lambda *args: my_abort(f'Use-after-free detected')
    # make sure future allocated buffers are not too close to UEFI data
    heap.alloc(0x1000)
    ql.os.heap = heap