mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
13 lines
267 B
Plaintext
13 lines
267 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.SSA
|
|
|
|
from SsaDefinition ssa, SsaSourceVariable v, string s
|
|
where
|
|
ssa.getSourceVariable() = v and
|
|
(
|
|
s = ssa.toString()
|
|
or
|
|
not exists(ssa.toString()) and s = "error"
|
|
)
|
|
select v, ssa.getControlFlowNode(), s
|