exception on div by 0

Change-Id: Id33d6a5e3df5812babd28ebfc65b95ce97219ad3
This commit is contained in:
Caolán McNamara
2015-07-16 10:01:24 +01:00
parent 091f6c3823
commit cf4159e16c
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@@ -1859,6 +1859,7 @@ sal_uLong PictReader::ReadData(sal_uInt16 nOpcode)
void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
{
try {
sal_uInt16 nOpcode;
sal_uInt8 nOneByteOpcode;
sal_uLong nSize, nPercent, nLastPercent;
@@ -1950,6 +1951,10 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
pPict->SetEndian(nOrigNumberFormat);
if (pPict->GetError()) pPict->Seek(nOrigPos);
} catch (...)
{
rStreamPict.SetError(SVSTREAM_FILEFORMAT_ERROR);
}
}
namespace pict {