docs: add several cpp training slides

This commit is contained in:
james
2019-08-05 10:46:57 +01:00
parent b4856e928b
commit 819f308010
19 changed files with 1603 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
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."