blob: d9cb1e9e8fcc5aea035a50890dfff3e3d8f92ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Crash_%1$s {
static final String base64Bytes = String.join("", "%2$s");
public static void main(String[] args) throws Throwable {
ClassLoader.getSystemClassLoader().setDefaultAssertionStatus(true);
try {
Method fuzzerInitialize = %3$s.class.getMethod("fuzzerInitialize");
fuzzerInitialize.invoke(null);
} catch (NoSuchMethodException ignored) {
try {
Method fuzzerInitialize = %3$s.class.getMethod("fuzzerInitialize", String[].class);
fuzzerInitialize.invoke(null, (Object) args);
} catch (NoSuchMethodException ignored1) {
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace();
System.exit(1);
}
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace();
System.exit(1);
}
%4$s
%3$s.fuzzerTestOneInput(input);
}
}
|