Skip to content

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cpp/ql/src/Likely Bugs/Leap Year/LeapYear.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ private module LeapYearCheckConfig implements DataFlow::ConfigSig {
215215
predicate isSink(DataFlow::Node sink) {
216216
exists(ChecksForLeapYearFunctionCall fc | sink.asExpr() = fc.getAnArgument())
217217
}
218+
219+
predicate observeDiffInformedIncrementalMode() {
220+
none() // only used negatively in UncheckedLeapYearAfterYearModification.ql
221+
}
218222
}
219223

220224
module LeapYearCheckFlow = DataFlow::Global<LeapYearCheckConfig>;
@@ -285,6 +289,14 @@ private module PossibleYearArithmeticOperationCheckConfig implements DataFlow::C
285289
aexpr.getLValue() = fa
286290
)
287291
}
292+
293+
predicate observeDiffInformedIncrementalMode() { any() }
294+
295+
Location getASelectedSourceLocation(DataFlow::Node source) {
296+
result = source.asExpr().getLocation()
297+
}
298+
299+
Location getASelectedSinkLocation(DataFlow::Node sink) { result = sink.asExpr().getLocation() }
288300
}
289301

290302
module PossibleYearArithmeticOperationCheckFlow =

0 commit comments

Comments
 (0)