coverity#1219652 untrusted loop bound
coverity#1219652 untrusted loop bound

Change-Id: I9a9c6406b5e2ed2616075e97001701bb45c4ccd2

LibreOffice/libcdr,LibreOffice/libcdr,LibreOffice/libcdr,LibreOffice/libcdr