File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cpp/ql/src/Likely Bugs/Leap Year Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2424 exists ( LeapYearFieldAccess yfacheck |
2525 yfacheck .getQualifier ( ) = var .getAnAccess ( ) and
2626 yfacheck .isUsedInCorrectLeapYearCheck ( ) and
27- yfacheck = yfa .getASuccessor * ( )
27+ yfacheck . getBasicBlock ( ) = yfa . getBasicBlock ( ) .getASuccessor * ( )
2828 )
2929 or
3030 // If there is a data flow from the variable that was modified to a function that seems to check for leap year
5050 mfa .getQualifier ( ) = var .getAnAccess ( ) and
5151 mfa .isModified ( ) and
5252 (
53- mfa = yfa .getASuccessor * ( ) or
54- yfa = mfa .getASuccessor * ( )
53+ mfa . getBasicBlock ( ) = yfa . getBasicBlock ( ) .getASuccessor * ( ) or
54+ yfa . getBasicBlock ( ) = mfa .getBasicBlock ( ) . getASuccessor + ( )
5555 ) and
5656 ae = mfa .getEnclosingElement ( ) and
5757 ae .getAnOperand ( ) .getValue ( ) .toInt ( ) = 1
You can’t perform that action at this time.
0 commit comments