vcl/source/filter/imet/ios2met.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit bf5fc53cf7f35f7c39d0d8d8b871096b8ca2d042 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Aug 29 11:00:11 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Aug 29 15:16:23 2021 +0200 ofz: MemorySanitizer: use-of-uninitialized-value Change-Id: Ifecfcf3ff4c884d7bd65de7186c7d8db06b6b57b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121219 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index 1d0b83ba1fb3..fc6f8c2fc595 100644 --- a/vcl/source/filter/imet/ios2met.cxx +++ b/vcl/source/filter/imet/ios2met.cxx @@ -2555,7 +2555,6 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize) case EndGrfObjMagic: { SvStream * pSave; sal_uInt16 nOrderID, nOrderLen; - sal_uInt8 nbyte; if (!xOrdFile) break; @@ -2571,6 +2570,7 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize) pOS2MET->Seek(0); // "Segment header": + sal_uInt8 nbyte(0); pOS2MET->ReadUChar( nbyte ); if (nbyte==0x70) { // header exists pOS2MET->SeekRel(15); // but we don't need it