mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Java: Added CompiledExpression sink for MVEL injections
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package org.mvel2.compiler;
|
||||
|
||||
import org.mvel2.integration.VariableResolverFactory;
|
||||
|
||||
public class CompiledExpression implements ExecutableStatement {
|
||||
public Object getDirectValue(Object staticContext, VariableResolverFactory factory) { return null; }
|
||||
public Object getValue(Object staticContext, VariableResolverFactory factory) { return null; }
|
||||
}
|
||||
@@ -3,5 +3,5 @@ package org.mvel2.compiler;
|
||||
import org.mvel2.integration.VariableResolverFactory;
|
||||
|
||||
public interface ExecutableStatement {
|
||||
public Object getValue(Object staticContext, VariableResolverFactory factory);
|
||||
public Object getValue(Object staticContext, VariableResolverFactory factory);
|
||||
}
|
||||
@@ -2,5 +2,5 @@ package org.mvel2.compiler;
|
||||
|
||||
public class ExpressionCompiler {
|
||||
public ExpressionCompiler(String expression) {}
|
||||
public ExecutableStatement compile() { return null; }
|
||||
public CompiledExpression compile() { return null; }
|
||||
}
|
||||
Reference in New Issue
Block a user