mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
12 lines
373 B
Plaintext
12 lines
373 B
Plaintext
import semmle.code.cpp.ir.dataflow.DefaultTaintTracking
|
|
|
|
class SourceConfiguration extends TaintedWithPath::TaintTrackingConfiguration {
|
|
override predicate isSink(Element e) { any() }
|
|
}
|
|
|
|
from Expr source, Element tainted
|
|
where
|
|
TaintedWithPath::taintedWithPath(source, tainted, _, _) and
|
|
not tainted.getLocation().getFile().getExtension() = "h"
|
|
select source, tainted
|