compositor: Avoid overflow for infiniteRegion()


The infinite region is just supposed to be an arbitrarily large rectangle that covers everything, but since it's put into a QRegion, its width will be calculated.

Therefore the width has to fit inside an int. We adjust the bounds so that its width becomes exactly numerical_limits<int>::max().

This is caught by 419ebb2770eb606762dcca96978b7b26299aafd9 and the
series in qtbase.

Fixes: QTBUG-134939
Change-Id: I03c9ebbba0288594f87a131b0dfc28a104c8c91d
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commit11306bc95988c513090be6684dbd66ecd9faaf2b
parent1c1631b82743f76d3ef36bab6f3310e6cfc50d8c
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit timeThu, 20 Mar 2025 12:13:09 +0000