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