ASYLUM: fix integer overflow in Screen::graphicsSelectionSort()

This commit is contained in:
alxpnv 2021-05-12 13:51:13 +03:00 committed by Eugene Sandulenko
parent 408a85436a
commit bf7755aa29
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -712,6 +712,9 @@ void Screen::clearGraphicsInQueue() {
void Screen::graphicsSelectionSort() {
uint32 maxIdx;
if (!_queueItems.size())
return;
for (uint32 i = 0; i < _queueItems.size() - 1; i++) {
maxIdx = i;