From 4a9e8284909c220c92ec14c5e2f139810e01e0f2 Mon Sep 17 00:00:00 2001 From: SR_team Date: Thu, 23 Mar 2023 02:33:02 +0200 Subject: [PATCH] Fix crash in find field references --- .../app/extension/datatype/finder/DecompilerVariable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerVariable.java b/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerVariable.java index 772c4b4d07..74b8d2eef6 100644 --- a/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerVariable.java +++ b/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerVariable.java @@ -106,7 +106,7 @@ public abstract class DecompilerVariable { } Varnode[] inputs = op.getInputs(); - if (inputs.length == 2) { + if (inputs.length == 2 && inputs[0].getHigh() != null) { return inputs[0].getHigh().getDataType(); }