init refactoring exercise

This commit is contained in:
2024-11-27 13:09:22 +01:00
parent 51f58d19bc
commit e31f2e3544
134 changed files with 3057 additions and 61 deletions

View File

@@ -0,0 +1,28 @@
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Crash_767d49395cc07efcdbcf6b52e73d12fa54783444 {
static final String base64Bytes = String.join("", "rO0ABXNyABNqYXZhLnV0aWwuQXJyYXlMaXN0eIHSHZnHYZ0DAAFJAARzaXpleHAAAAADdwQAAAADdAALQXBAQUFBQUEuQUZ0AARGRkZGdAAIXV1BQUEuQUZ4");
public static void main(String[] args) throws Throwable {
Crash_767d49395cc07efcdbcf6b52e73d12fa54783444.class.getClassLoader().setDefaultAssertionStatus(true);
try {
Method fuzzerInitialize = UserRegistrationFuzzTest.class.getMethod("fuzzerInitialize");
fuzzerInitialize.invoke(null);
} catch (NoSuchMethodException ignored) {
try {
Method fuzzerInitialize = UserRegistrationFuzzTest.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);
}
com.code_intelligence.jazzer.api.CannedFuzzedDataProvider input = new com.code_intelligence.jazzer.api.CannedFuzzedDataProvider(base64Bytes);
UserRegistrationFuzzTest.fuzzerTestOneInput(input);
}
}