mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Merge pull request #1168 from geoffw0/format-amp
CPP: %@ in format strings
This commit is contained in:
@@ -40,4 +40,6 @@ void test(int i, const char *str)
|
||||
printf("%2$.*4$f", 0, num, 0, precision); // GOOD [FALSE POSITIVE]
|
||||
printf("%2$.*4$f", num, 0, precision); // BAD (too few format arguments) [INCORRECT MESSAGE]
|
||||
}
|
||||
|
||||
printf("%@ %i %i", 1, 2); // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user