cid#1306208 sanitize loop bound
cid#1306208 sanitize loop bound

Change-Id: I33d0013a193f4d9a2f92332cde71ce2d00bd02a4

LibreOffice/libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand