Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“ArrayIndexOutOfBoundsException”The input array size is larger than the array limit #2775

Open
Cici-Musse-Lee opened this issue May 24, 2022 · 0 comments

Comments

@Cici-Musse-Lee
Copy link

Cici-Musse-Lee commented May 24, 2022

The file path is org.zkoss.idom.Verifier.
In this test case we created, pass int0=-2147483648 into the function whose api is isXMLCharacter. In this api, an exception will generated when the array size is established as -2147483648.

test code:

        int int0 = -2147483648;
        org.zkoss.idom.Verifier.isXMLCharacter(int0);

test results:

        java.lang.ArrayIndexOutOfBoundsException: Index -2147483648 out of bounds for length 65536
	at org.zkoss.idom.Verifier.isXMLCharacter(Verifier.java:536)
	at org.zkoss.idom.Verifier_Test.test_isXMLCharacter_2_32(Verifier_Test.java:373)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant