[TRACE] Don't try to decode a bridge if memory is not mapped or un-readable

This commit is contained in:
ptitSeb 2024-11-20 20:03:48 +01:00
parent 4e19324177
commit 38880ab5a4

View File

@ -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)