diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-02 16:51:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-03 12:06:15 +0200 |
commit | 65d4320110d3f6ab9242389fdc8d392de13cbb74 (patch) | |
tree | fec91e64e8026e5a4fd4970c017a9c5cb9a99908 /vcl | |
parent | 27b84d7460cbb925429826d20c4cee5439ad7053 (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I00531cdb266c4277af742cee6ce5d05f0ea3334e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121523
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-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 ) |