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>
| commit | d1b7ce4ad639793ebffa58b0ee52cbfe0776e364 |
| parent | 730f53a38bd88d8485faedf7581dfab73ca0a0d5 |
| author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> |
| committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> |
| commit time | Wed, 12 Aug 2026 16:52:37 +0000 |