From 83e4461b2a44460015b7886bcb5022afc6d5bb29 Mon Sep 17 00:00:00 2001 From: caheckman <48068198+caheckman@users.noreply.github.com> Date: Tue, 9 Apr 2019 10:40:18 -0400 Subject: [PATCH] Fix for Github #336: equates in 16-bit x86 --- .../src/main/java/ghidra/program/model/pcode/DynamicHash.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/DynamicHash.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/DynamicHash.java index 75cc6157e6..8fb24b73e1 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/DynamicHash.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/DynamicHash.java @@ -118,8 +118,8 @@ public class DynamicHash { reg = SimpleCRC32.hashOneByte(reg, slot); reg = SimpleCRC32.hashOneByte(reg, transtable[op.getOpcode()]); long val = op.getSeqnum().getTarget().getOffset(); - int sz = op.getSeqnum().getTarget().getPointerSize(); - for (int i = 0; i < sz; ++i) { + int sz = op.getSeqnum().getTarget().getSize(); + for (int i = 0; i < sz; i += 8) { reg = SimpleCRC32.hashOneByte(reg, (int) val); val >>= 8; }