mirror of
https://github.com/ptitSeb/box86.git
synced 2025-05-08 21:08:57 +08:00
Do not try to get nearest function name if pointer is to small
This commit is contained in:
parent
0883cdc9ac
commit
786680a288
@ -1548,6 +1548,8 @@ const char* FindNearestSymbolName(elfheader_t* h, void* p, uintptr_t* start, uin
|
||||
const char* ret = NULL;
|
||||
uintptr_t s = 0;
|
||||
uint32_t size = 0;
|
||||
if((uintptr_t)p<0x10000)
|
||||
return ret;
|
||||
#ifdef HAVE_TRACE
|
||||
if(!h) {
|
||||
if(getProtection((uintptr_t)p)&(PROT_READ)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user