Don't crash if subpath is empty
If a path only has ClockWise sub-paths, an empty CounterClockWise
path is added. This would cause an out-of-bounds read. This is not
a valid path, since clockwise sub-paths represent holes in the shape
and should therefore be inside a counter-clockwise path, but it
should not crash.
Pick-to: 6.11
Change-Id: I96c6671874ae8e64921ced85f3a77afdc85a0631
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
| commit | 43f7835125d1448b1ff85f9f444655832941400d |
| parent | 3709fbc6f706a712c963be5425c1dc0af2701ca3 |
| author | Paul Olav Tvete <paul.tvete@qt.io> |
| committer | Paul Olav Tvete <paul.tvete@qt.io> |
| commit time | Fri, 30 Jan 2026 12:58:49 +0100 |