Files
codeql/python/ql/test/library-tests/dataflow/summaries-checks/invalid-spec.ql
2024-04-23 09:40:44 +02:00

9 lines
317 B
Plaintext

import python
import semmle.python.dataflow.new.FlowSummary
import semmle.python.dataflow.new.internal.FlowSummaryImpl
query predicate invalidSpecComponent(SummarizedCallable sc, string s, string c) {
(sc.propagatesFlow(s, _, _) or sc.propagatesFlow(_, s, _)) and
Private::External::invalidSpecComponent(s, c)
}