[K/N] Added frame check in LeaveFrame
This commit is contained in:
@@ -33,6 +33,7 @@ void mm::ShadowStack::EnterFrame(ObjHeader** start, int parameters, int count) n
|
|||||||
|
|
||||||
void mm::ShadowStack::LeaveFrame(ObjHeader** start, int parameters, int count) noexcept {
|
void mm::ShadowStack::LeaveFrame(ObjHeader** start, int parameters, int count) noexcept {
|
||||||
FrameOverlay* frame = reinterpret_cast<FrameOverlay*>(start);
|
FrameOverlay* frame = reinterpret_cast<FrameOverlay*>(start);
|
||||||
|
RuntimeAssert(currentFrame_ == frame, "Frame to leave is expected to be %p, but current frame is %p", frame, currentFrame_);
|
||||||
currentFrame_ = frame->previous;
|
currentFrame_ = frame->previous;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user