framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open baetz-daniel opened this issue 4 years ago • 0 comments

https://github.com/exomia/framework/blob/68f0e503c64438353e37ad0d1e812d2994b18354/src/Exomia.Framework/UI/UiManager.cs#L161 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 avatar Jan 07 '22 16:01 baetz-daniel