coverity#1219657 untrusted loop bound
coverity#1219657 untrusted loop bound

Change-Id: Ie645106ddd3da591942de6bbebc6062618107df5

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