mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
8 lines
276 B
Plaintext
8 lines
276 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." |