mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Merge pull request #4831 from geoffw0/printfunknown
C++: Fix Printf.qll specsAreKnown
This commit is contained in:
@@ -42,4 +42,8 @@ void test(int i, const char *str)
|
||||
}
|
||||
|
||||
printf("%@ %i %i", 1, 2); // GOOD
|
||||
|
||||
printf("%Y", 1, 2); // GOOD (unknown format character, this might be correct)
|
||||
printf("%1.1Y", 1, 2); // GOOD (unknown format character, this might be correct)
|
||||
printf("%*.*Y", 1, 2); // GOOD (unknown format character, this might be correct)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user