mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01:00
10 lines
367 B
Plaintext
10 lines
367 B
Plaintext
import semmle.code.java.security.ControlledString
|
|
|
|
from Expr controlled, Method method, int line
|
|
where
|
|
controlledString(controlled) and
|
|
method = controlled.getEnclosingCallable() and
|
|
line = controlled.getLocation().getStartLine() - method.getLocation().getStartLine() and
|
|
controlled.getCompilationUnit().fromSource()
|
|
select method.getName(), line, controlled
|