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