cid#1306206 sanitize loop bound
cid#1306206 sanitize loop bound

Change-Id: I10b8c3fdf81c526394eca87b6b23b0955827aef3

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