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
The file path is org.zkoss.json.parser.Yylex.
In our test case, pass int1=2147483647 into the function whose api is yycharat().
Inside this api, an array with a size greater than 2147483647 will be created, and an array out-of-bounds exception will be generated at this time.
source code:
public final char yycharat (int pos){
return zzBuffer[zzStartRead[pos];
}
test code:
public void test_yycharat_1_36() throws NoSuchFieldException,IllegalAccessException{
int int1=2147483647;
java.io.Reader reader2 = null;
org.zkoss.json.parser.Yylex yylex0 = new org.zkoss.json.parser.Yylex(reader2);
yylex0.yycharat(int1);
}
test result:
java.lang.ArraylndexOutOfBoundsException:Index 2147483647 out of bounds for length 16384
at org.zkoss.json.parser.Yylex.yycharat(Yylex.java:439)
at org.zkoss.json.parser.Yylex_Test.test_yycharat_1_36(Yylex_Test.java:596)
The text was updated successfully, but these errors were encountered:
The file path is org.zkoss.json.parser.Yylex.
In our test case, pass int1=2147483647 into the function whose api is yycharat().
Inside this api, an array with a size greater than 2147483647 will be created, and an array out-of-bounds exception will be generated at this time.
source code:
test code:
test result:
The text was updated successfully, but these errors were encountered: