[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 5 12:33:14 UTC 2021
vcl/source/filter/imet/ios2met.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 08665e27e1d66cde90bac978eed4cee998b1d5d5
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 5 09:22:31 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Sep 5 14:32:39 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Iad99d728cea33e8a3b81ccd654258bddd3f96a13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121668
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx
index cf1694ca04a5..e767cccc047b 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -1731,7 +1731,7 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen)
case GOrdPIvAtr: PushAttr(nOrderID);
[[fallthrough]];
case GOrdSIvAtr: {
- sal_uInt8 nA, nP, nFlags;
+ sal_uInt8 nA(0), nP(0), nFlags(0);
Color aCol;
RasterOp eROP;
pOS2MET->ReadUChar( nA ).ReadUChar( nP ).ReadUChar( nFlags );
@@ -1780,7 +1780,7 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen)
}
}
else {
- sal_uInt8 nMix;
+ sal_uInt8 nMix(0);
pOS2MET->ReadUChar( nMix );
if (nMix==0) {
switch (nP) {
More information about the Libreoffice-commits
mailing list