mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: Repair callDereferences for failing test.
This commit is contained in:
@@ -17,6 +17,12 @@ predicate callDereferences(FunctionCall fc, int i) {
|
||||
af.hasArrayOutput(i)
|
||||
)
|
||||
)
|
||||
or
|
||||
exists(FormattingFunction ff |
|
||||
fc.getTarget() = ff and
|
||||
i >= ff.getFirstFormatArgumentIndex() and
|
||||
fc.getArgument(i).getType() instanceof PointerType
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user