Do not try to get nearest function name if pointer is to small

This commit is contained in:
ptitSeb 2023-12-09 10:50:06 +01:00
parent 0883cdc9ac
commit 786680a288

View File

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