mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
10 lines
271 B
Plaintext
10 lines
271 B
Plaintext
import cpp
|
|
import semmle.code.cpp.commons.Printf
|
|
|
|
from Call c, FormattingFunction ff, Expr format
|
|
where
|
|
c.getTarget() = ff and
|
|
format = c.getArgument(ff.getFormatParameterIndex()) and
|
|
not format instanceof StringLiteral
|
|
select format, "Non-constant format string."
|