mirror of https://github.com/x64dbg/GleeBug
Fix another crash
This commit is contained in:
parent
df29f506c9
commit
8e1ff5a123
|
|
@ -240,15 +240,14 @@ namespace GleeBug
|
||||||
//TODO: check if the right type is accessed (ExceptionInformation[0])
|
//TODO: check if the right type is accessed (ExceptionInformation[0])
|
||||||
//FIXED:
|
//FIXED:
|
||||||
auto bpxPage = mProcess->memoryBreakpointPages.find(exceptionAddress & ~(PAGE_SIZE - 1));
|
auto bpxPage = mProcess->memoryBreakpointPages.find(exceptionAddress & ~(PAGE_SIZE - 1));
|
||||||
auto pageAddr = bpxPage->first;
|
|
||||||
auto pageProperties = bpxPage->second;
|
|
||||||
|
|
||||||
if(bpxPage == mProcess->memoryBreakpointPages.end())
|
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)));
|
sprintf_s(error, "Process::memoryBreakPointPages data structure is incosistent, should dump page at 0x%p", (void*)(exceptionAddress & ~(PAGE_SIZE - 1)));
|
||||||
cbInternalError(error);
|
cbInternalError(error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
auto pageAddr = bpxPage->first;
|
||||||
|
auto pageProperties = bpxPage->second;
|
||||||
|
|
||||||
//TODO: If I only have a page with Read bp and the exception was not on read, I don't execute the callback. Because since this was implemented with PAGE_GUARD, writtes or executes still trigger
|
//TODO: If I only have a page with Read bp and the exception was not on read, I don't execute the callback. Because since this was implemented with PAGE_GUARD, writtes or executes still trigger
|
||||||
//This callback.
|
//This callback.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue