Skip to content

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

Description

@baetz-daniel

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".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions