From 690459e2f1d140c94fcae3423343cb8099f89f72 Mon Sep 17 00:00:00 2001 From: caheckman <48068198+caheckman@users.noreply.github.com> Date: Fri, 9 Feb 2024 18:02:11 +0000 Subject: [PATCH] GP-4314 Don't sanity check overridden switch --- Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc index c07aea7235..d6d7f8b10e 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc @@ -2253,6 +2253,8 @@ void JumpTable::recoverModel(Funcdata *fd) void JumpTable::sanityCheck(Funcdata *fd) { + if (jmodel->isOverride()) + return; // Don't perform sanity check on an override uint4 sz = addresstable.size(); if (!isReachable(indirect))