You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonar-keyware/sonar-keyware-plugins-java/src/test/files/SystemFunctionChecker.java

13 lines
373 B

class SystemFunctionChecker{
public void add(String command){
Process process = Runtime.getRuntime().exec(command); // Noncompliant {{在构建命令前对输入数据进行验证}}
}
public void det(String commands){
ProcessBuilder pb = new ProcessBuilder(commands);// Noncompliant {{在构建命令前对输入数据进行验证}}
}
}