Fix crash

This commit is contained in:
gmh5225 2022-06-19 17:43:30 +08:00
parent 8ede5be134
commit c865113301
No known key found for this signature in database
GPG Key ID: 3BBC731F40B2CEC1
1 changed files with 2 additions and 3 deletions

View File

@ -432,15 +432,14 @@ namespace GleeBug
//TODO: check if the right type is accessed (ExceptionInformation[0])
//FIXED:
auto bpxPage = mProcess->memoryBreakpointPages.find(exceptionAddress & ~(PAGE_SIZE - 1));
auto pageAddr = bpxPage->first;
auto pageProperties = bpxPage->second;
if (bpxPage == mProcess->memoryBreakpointPages.end())
{
sprintf_s(error, "Process::memoryBreakPointPages data structure is incosistent, should dump page at 0x%p", (void*)(exceptionAddress & ~(PAGE_SIZE - 1)));
cbInternalError(error);
return;
}
auto pageAddr = bpxPage->first;
auto pageProperties = bpxPage->second;
/*
Access = 1,