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.
10 lines
481 B
10 lines
481 B
// 在动态加载库前对输入数据进行验证,确保输入数据仅能用于加载允许加载的代码库
|
|
class DynamicLibraryLoadCheckerExample {
|
|
|
|
public void loadLibrary(String libraryName, int number) {
|
|
String abc = "bac";
|
|
System.loadLibrary("/path/to/your/library");
|
|
System.loadLibrary(libraryName); // Noncompliant {{在动态加载库前对输入数据进行验证,确保输入数据仅能用于加载允许加载的代码库}}
|
|
|
|
}
|
|
} |