From cc2b1e8d7cb28381f750d87de14d30aa4c176240 Mon Sep 17 00:00:00 2001 From: Arnaud Diederen Date: Mon, 6 Sep 2021 08:14:47 +0200 Subject: [PATCH] Backported fixes --- pywraps/py_funcs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywraps/py_funcs.hpp b/pywraps/py_funcs.hpp index ccde749..280a2a5 100644 --- a/pywraps/py_funcs.hpp +++ b/pywraps/py_funcs.hpp @@ -15,7 +15,7 @@ def get_fchunk_referer(ea, idx): static ea_t get_fchunk_referer(ea_t ea, size_t idx) { func_t *pfn = get_fchunk(ea); - if ( pfn == NULL ) + if ( !is_func_tail(pfn) ) return BADADDR; func_parent_iterator_t dummy(pfn); // read referer info if ( idx >= pfn->refqty || pfn->referers == NULL )