Files
codeql/docs/language/ql-training/query-examples/cpp/control-flow-cpp-5.ql
2019-09-05 08:40:36 +01:00

10 lines
346 B
Plaintext

import cpp
from ExprCall c, PointerDereferenceExpr deref, VariableAccess va,
Access fnacc
where c.getLocation().getFile().getBaseName() = "cjpeg.c" and
c.getLocation().getStartLine() = 640 and
deref = c.getExpr() and
va = deref.getOperand() and
fnacc = va.getTarget().getAnAssignedValue()
select c, fnacc.getTarget()