mirror of
https://github.com/ptitSeb/box64.git
synced 2024-11-26 16:21:17 +00:00
[TRACE] Don't try to decode a bridge if memory is not mapped or un-readable
This commit is contained in:
parent
4e19324177
commit
38880ab5a4
@ -225,6 +225,10 @@ uintptr_t AddVSyscall(bridge_t* bridge, int num)
|
||||
|
||||
const char* getBridgeName(void* addr)
|
||||
{
|
||||
if(!getMmapped((uintptr_t)addr))
|
||||
return NULL;
|
||||
if(!(getProtection((uintptr_t)addr)&PROT_READ))
|
||||
return NULL;
|
||||
onebridge_t* one = (onebridge_t*)(((uintptr_t)addr&~(sizeof(onebridge_t)-1))); // align to start of bridge
|
||||
if(one->C3==0xC3 && one->S=='S' && one->C=='C') {
|
||||
if(one->w==NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user