Fix OOB read in mesh cooking from bad vertex layout


The vertex position offset and stride were never validated when cooking
convex/triangle meshes, so a Geometry whose position attribute doesn't fit
within its stride caused reads past the end of the vertex buffer.

Pick-to: 6.12 6.11 6.8
Change-Id: If780a71eb56b6106c3f53961bfbee95583ef0266
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
commita354ed789069bac323d996f2866b3eb56a178907
parentb41bea0107e29d8abacdef1a7679397740ef8533
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeTue, 25 Aug 2026 07:32:06 +0000