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

BatchNode: Fix IndexOutOfBoundsException #2297

Merged

Conversation

jcfandino
Copy link
Contributor

@jcfandino jcfandino commented Jul 17, 2024

  • There are temporary arrays that are reused to work with vertex buffers.

  • Some conditions cause the arrays to be used for storing more vertices that they can hold.

  • This throws the exception.

  • This fix validates the arrays size before accessing them, recreating the arrays if they are too small.

Fixes #2296

- There are temporary arrays that are reused to work with vertex buffers.

- Some conditions cause the index to be used for storing more vertices that they can hold.

- This throws the exception.

- This fix validates the arrays size before accessing them, recreating the arrays if they are too small.
@jcfandino jcfandino changed the title BatchNode: Fix IndexOutOfBoundsException (#2296) BatchNode: Fix IndexOutOfBoundsException Jul 17, 2024
@stephengold stephengold merged commit 1e10225 into jMonkeyEngine:master Jul 31, 2024
14 checks passed
@stephengold
Copy link
Member

@jcfandino thanks for your contribution

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

Successfully merging this pull request may close these issues.

BatchNode can throw IndexOutOfBoundsException
2 participants