We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a872ae commit 542a807Copy full SHA for 542a807
src/memray/_memray/ghost_stack/src/ghost_stack.cpp
@@ -305,11 +305,6 @@ class GhostStackImpl {
305
306
if (save_loc_ret == 0 && loc.type == UNW_SLT_MEMORY && loc.u.addr != 0) {
307
ret_loc = reinterpret_cast<uintptr_t*>(loc.u.addr);
308
- // Sanity check: ret_loc should be somewhere near FP (which is our sp variable)
309
- uintptr_t addr = loc.u.addr;
310
- if (addr < sp - 0x10000 || addr > sp + 0x10000) {
311
- ret_loc = nullptr; // Don't use this suspicious address
312
- }
313
}
314
#else
315
// macOS: return address is at fp + sizeof(void*)
0 commit comments