You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autofuzz generates invalid code for multi-dimensional array #1026
Autofuzz generates invalid code for multi-dimensional arrays such as int[][]. The Jazzer code uses Class#getName during code generation, however for arrays that uses the JVM type descriptor (e.g. [I), which is not valid in the generated Java code:
This could be solved by using Class#getTypeName which returns the desired format, however its documentation makes no guarantees about the output. So it might be safer to create a custom method which produces the desired type string.
Reproduction steps
Create a dummy Java class which takes a multi-dimensional array as input
packageexample;
publicclassTest {
publicTest(int[][] i) {
if (i != null && i.length > 3) thrownewRuntimeException();
}
}
Compile that file and package the compiled file (example/Test.class) in a JAR (e.g. example.jar)
Activity