mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
C++: Correct false positive. Only TimeConversionFunction that do not auto correct for leap year should be considered.
This commit is contained in:
@@ -46,6 +46,7 @@ class SafeTimeGatheringFunction extends Function {
|
||||
|
||||
from FunctionCall fcall, TimeConversionFunction trf, Variable var
|
||||
where
|
||||
not trf.isAutoLeapYearCorrecting() and
|
||||
fcall = trf.getACallToThisFunction() and
|
||||
fcall instanceof ExprInVoidContext and
|
||||
var.getUnderlyingType() instanceof UnpackedTimeType and
|
||||
|
||||
Reference in New Issue
Block a user