mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
351 B
Plaintext
12 lines
351 B
Plaintext
import cpp
|
|
import semmle.code.cpp.dataflow.new.DataFlow
|
|
|
|
from Function fopen, FunctionCall fc, Expr src, DataFlow::Node source, DataFlow::Node sink
|
|
where
|
|
fopen.hasGlobalName("fopen") and
|
|
fc.getTarget() = fopen and
|
|
source.asIndirectExpr(1) = src and
|
|
sink.asIndirectExpr(1) = fc.getArgument(0) and
|
|
DataFlow::localFlow(source, sink)
|
|
select src
|