diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-10-10 14:16:56 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-10-10 14:16:56 +0200 |
| commit | dd9c3a53bfac3c5faa15be0b606f6fa1125fe189 (patch) | |
| tree | 38f302f3cbec984d9c7f0943670b8d993adb8908 /src | |
| parent | 57959a1e93a2cb8bc0bf525239217bde07e27ab7 (diff) | |
| download | box64-dd9c3a53bfac3c5faa15be0b606f6fa1125fe189.tar.gz box64-dd9c3a53bfac3c5faa15be0b606f6fa1125fe189.zip | |
Do not try to get nearest function name if pointer is to small
Diffstat (limited to 'src')
| -rw-r--r-- | src/elfs/elfloader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index e26d718e..818d7d5f 100644 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -1469,6 +1469,8 @@ const char* FindNearestSymbolName(elfheader_t* h, void* p, uintptr_t* start, uin const char* ret = NULL; uintptr_t s = 0; uint64_t size = 0; + if((uintptr_t)p<0x10000) + return ret; #ifdef HAVE_TRACE if(!h) { if(getProtection((uintptr_t)p)&(PROT_READ)) { |