mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Fix for Github #336: equates in 16-bit x86
This commit is contained in:
parent
59fb950c79
commit
83e4461b2a
1 changed files with 2 additions and 2 deletions
|
@ -118,8 +118,8 @@ public class DynamicHash {
|
||||||
reg = SimpleCRC32.hashOneByte(reg, slot);
|
reg = SimpleCRC32.hashOneByte(reg, slot);
|
||||||
reg = SimpleCRC32.hashOneByte(reg, transtable[op.getOpcode()]);
|
reg = SimpleCRC32.hashOneByte(reg, transtable[op.getOpcode()]);
|
||||||
long val = op.getSeqnum().getTarget().getOffset();
|
long val = op.getSeqnum().getTarget().getOffset();
|
||||||
int sz = op.getSeqnum().getTarget().getPointerSize();
|
int sz = op.getSeqnum().getTarget().getSize();
|
||||||
for (int i = 0; i < sz; ++i) {
|
for (int i = 0; i < sz; i += 8) {
|
||||||
reg = SimpleCRC32.hashOneByte(reg, (int) val);
|
reg = SimpleCRC32.hashOneByte(reg, (int) val);
|
||||||
val >>= 8;
|
val >>= 8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue