Package ghidra.program.model.correlate
Class DisambiguateByBytes
- java.lang.Object
-
- ghidra.program.model.correlate.DisambiguateByBytes
-
- All Implemented Interfaces:
DisambiguateStrategy
public class DisambiguateByBytes extends java.lang.Object implements DisambiguateStrategy
Attempt to disambiguate similar n-grams by hashing over all the bytes in their constituent instructions.
-
-
Constructor Summary
Constructors Constructor Description DisambiguateByBytes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<Hash>
calcHashes(InstructHash instHash, int matchSize, HashStore store)
Generate (possibly multiple) hashes that can be used to disambiguate an n-gram and its block from other blocks with similar instructions.
-
-
-
Method Detail
-
calcHashes
public java.util.ArrayList<Hash> calcHashes(InstructHash instHash, int matchSize, HashStore store) throws CancelledException, MemoryAccessException
Description copied from interface:DisambiguateStrategy
Generate (possibly multiple) hashes that can be used to disambiguate an n-gram and its block from other blocks with similar instructions. Hashes are attached to the block's disambigHash list.- Specified by:
calcHashes
in interfaceDisambiguateStrategy
- Parameters:
instHash
- the instruction hashmatchSize
- the number of instructions to matchstore
- is the HashStore used to store the disambiguating hashes- Returns:
- the list of disambiguating hashes
- Throws:
CancelledException
MemoryAccessException
-
-