Ghidra is a software reverse engineering (SRE) framework
In case of partial overlap always add Varnode to disjoint
caheckmana6afce67e7b2
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.ccindex 7f8bb2b1e4..6f680996f7 100644--- a/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc@@ -2400,7 +2400,8 @@ void Heritage::heritage(void)}disjoint.add((*liter).first,(*liter).second.size,pass,prev);}- else {+ else { // Partially contained in old range, but may contain new stuff+ disjoint.add((*liter).first,(*liter).second.size,pass,prev);if ((!needwarning)&&(info->deadremoved>0)) {// TODO: We should check if this varnode is tiled by previously heritaged rangesif (vn->isHeritageKnown()) continue; // Assume that it is tiled and produced by merging@@ -2409,7 +2410,6 @@ void Heritage::heritage(void)bumpDeadcodeDelay(vn);warnvn = vn;}- disjoint.add((*liter).first,(*liter).second.size,pass,prev);}}