ofz#45385 Integer-overflow

Change-Id: I7d5e4ffa7fc2c46d7a2ad679598aa1a62a623862
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131307
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-03-10 09:12:29 +00:00
parent 9929849f2d
commit 3edb855e7c

View File

@ -3858,8 +3858,6 @@ void HwpReader::makePicture(Picture * hbox)
void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, const Picture* hbox)
{
int x = hbox->pgx;
int y = hbox->pgy;
bool bIsRotate = false;
while (drawobj)
@ -3897,6 +3895,9 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, const Picture* hbox)
}
else
{
double x = hbox->pgx;
double y = hbox->pgy;
bIsRotate = false;
if( (drawobj->property.flag & HWPDO_FLAG_ROTATION) &&
(drawobj->property.parall.pt[0].y != drawobj->property.parall.pt[1].y) &&