Skip to content

Commit 676e85a

Browse files
committed
C++: Re-enable the check.
1 parent 94dea9f commit 676e85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/commons/Printf.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ class FormatLiteral extends Literal {
921921
* format specifiers are present in the format string).
922922
*/
923923
predicate specsAreKnown() {
924-
any()
924+
this.getNumConvSpec() = count(int n | exists(this.getNumArgNeeded(n)))
925925
}
926926

927927
/**

0 commit comments

Comments
 (0)