diff options
Diffstat (limited to 'vcl/source/filter/imet/ios2met.cxx')
-rw-r--r-- | vcl/source/filter/imet/ios2met.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index 0057d3f55808..0888a84c576d 100644 --- a/vcl/source/filter/imet/ios2met.cxx +++ b/vcl/source/filter/imet/ios2met.cxx @@ -936,6 +936,12 @@ void OS2METReader::ReadBox(bool bGivenPos) sal_Int32 nHRound = ReadCoord(bCoord32); sal_Int32 nVRound = ReadCoord(bCoord32); + if (!pOS2MET->good()) + { + SAL_WARN("filter.os2met", "OS2METReader::ReadBox: short read"); + return; + } + tools::Rectangle aBoxRect( P0, aAttr.aCurPos ); if ( pAreaStack ) |