mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1954 Refactor characterizeAsParam, AncestorRealistic adjustments
This commit is contained in:
parent
91eb96f109
commit
b7955f2a79
15 changed files with 711 additions and 191 deletions
|
@ -392,9 +392,17 @@ public:
|
|||
|
||||
/// \brief Node for a forward traversal of a Varnode expression
|
||||
struct TraverseNode {
|
||||
enum {
|
||||
actionalt = 1, ///< Alternate path traverses a solid action or \e non-incidental COPY
|
||||
indirect = 2, ///< Main path traverses an INDIRECT
|
||||
indirectalt = 4, ///< Alternate path traverses an INDIRECT
|
||||
lsb_truncated = 8, ///< Least significant byte(s) of original value have been truncated
|
||||
concat_high = 0x10 ///< Original value has been concatented as \e most significant portion
|
||||
};
|
||||
const Varnode *vn; ///< Varnode at the point of traversal
|
||||
uint4 flags; ///< Flags associated with the node
|
||||
TraverseNode(const Varnode *v,uint4 f) { vn = v; flags = f; } ///< Constructor
|
||||
static bool isAlternatePathValid(const Varnode *vn,uint4 flags);
|
||||
};
|
||||
|
||||
bool contiguous_test(Varnode *vn1,Varnode *vn2); ///< Test if Varnodes are pieces of a whole
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue