mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-3019 Detect flow of NaN into floating-point comparison
This commit is contained in:
parent
285c90f1c5
commit
f61367bf19
13 changed files with 320 additions and 13 deletions
|
@ -1549,6 +1549,8 @@ public:
|
|||
};
|
||||
|
||||
class RuleIgnoreNan : public Rule {
|
||||
static bool checkBackForCompare(Varnode *floatVar,Varnode *root);
|
||||
static Varnode *testForComparison(Varnode *floatVar,PcodeOp *op,int4 slot,OpCode matchCode,int4 &count,Funcdata &data);
|
||||
public:
|
||||
RuleIgnoreNan(const string &g) : Rule( g, 0, "ignorenan") {} ///< Constructor
|
||||
virtual Rule *clone(const ActionGroupList &grouplist) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue