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

[UIManager] adding too much controls in one go results in a crash #42

Open
baetz-daniel opened this issue Jan 7, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@baetz-daniel
Copy link
Member

Array.Resize(ref _currentlyControls, _currentlyControls.Length * 2);

if the "_controlCount" exceeds the "_currentlyControls.Length * 2" amount the system will crash.
to prevent we should resize the array based on the maximum of "_currentlyControls.Length * 2" and "_controlCount".

@baetz-daniel baetz-daniel added the bug Something isn't working label Jan 7, 2022
@baetz-daniel baetz-daniel added this to the exomia.framework v2.0.0.0 milestone Jan 7, 2022
@baetz-daniel baetz-daniel self-assigned this Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant