From f4ab6d4bb2853e78397f5e1f4dc2da24abbed827 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Fri, 2 Aug 2019 13:41:15 -0400 Subject: [PATCH] disabled fixing of calls to non-function entries. this is likely caused by mis-identification of functions and not a real reason to pin things --- irdb-libs/ir_builders/fix_calls.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irdb-libs/ir_builders/fix_calls.cpp b/irdb-libs/ir_builders/fix_calls.cpp index 2e2f97ab5..f5d508fa8 100644 --- a/irdb-libs/ir_builders/fix_calls.cpp +++ b/irdb-libs/ir_builders/fix_calls.cpp @@ -250,6 +250,9 @@ class FixCalls_t : public TransformStep_t +// calls to not the entry of a function likely result +// from ida/rida mis-identification of functions. no need to fix them. +#if 0 assert(cfg->getEntry()); /* if the call instruction isn't to a function entry point */ @@ -259,6 +262,7 @@ class FixCalls_t : public TransformStep_t /* then we need to fix it */ return true; } +#endif /* check the entry block for thunks, etc. */ -- GitLab