ObjGeometryLoader: fix out-of-bounds accesses


We were reading values before the beginning of the array. "Conditional
jump or move depends on uninitialised value(s)"

Check the value of lineSize before using it as an index.

Fixes: QTBUG-97751
Pick-to: 6.5 6.6
Change-Id: I57c4f36973f3d5a6f9aecf4d22626af3e29f71f4
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commitc1c07cb434fe4ead401e70d4fae7000ba6c50c76
parentbe9ef64a8fcaae548321dccfeb9ece29eb007550
authorAurélien Brooke <aurelien@bahiasoft.fr>
committerAurélien Brooke <aurelien@bahiasoft.fr>
commit timeMon, 12 Jun 2023 16:11:47 +0200