mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-2015 Adjustments to DynamicHash for "Force Union Field" action
This commit is contained in:
parent
bee69b2f38
commit
1bed9dac4d
5 changed files with 148 additions and 16 deletions
|
@ -76,6 +76,7 @@ class DynamicHash {
|
|||
void gatherUnmarkedVn(void); ///< Move staged Varnodes into the sub-graph and mark them
|
||||
void gatherUnmarkedOp(void); ///< Mark any new PcodeOps in the sub-graph
|
||||
void pieceTogetherHash(const Varnode *root,uint4 method); ///< Clean-up and piece together formal hash value
|
||||
static void moveOffSkip(const PcodeOp *&op,int4 &slot); ///< Convert given PcodeOp to a non-skip op by following data-flow
|
||||
public:
|
||||
void clear(void); ///< Called for each additional hash (after the first)
|
||||
void calcHash(const Varnode *root,uint4 method); ///< Calculate the hash for given Varnode and method
|
||||
|
@ -97,7 +98,7 @@ public:
|
|||
static bool getIsNotAttached(uint8 h); ///< Retrieve the attachment boolean from a hash
|
||||
static void clearTotalPosition(uint8 &h); ///< Clear the collision total and position fields within a hash
|
||||
static uint4 getComparable(uint8 h) { return (uint4)h; } ///< Get only the formal hash for comparing
|
||||
static uint4 transtable[]; ///< Translation of op-codes to hash values
|
||||
static const uint4 transtable[]; ///< Translation of op-codes to hash values
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue