Fix crash in malformed gradient


We assume that there are color stops in the gradient, so we exit
early if this is not the case, or if the array does not have the
expected size.

Pick-to: 6.12
Change-Id: I470132fb19d354695dd5be59a028b0f0665052bb
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
commitd1b7ce4ad639793ebffa58b0ee52cbfe0776e364
parent730f53a38bd88d8485faedf7581dfab73ca0a0d5
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit timeWed, 12 Aug 2026 16:52:37 +0000