summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-26 16:10:09 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2022-02-28 11:46:01 +0100
commit9da4ddff332582175f28a1fddb94ed4c07ab13ec (patch)
tree732fbe7d2d462159984565e5ef2d9dad02f3371a /hwpfilter
parent4ac060fce70a4b116207d061efbb6185e6162d04 (diff)
ofz#44991 Use-of-uninitialized-value
Change-Id: I0e3bcce489b665bac3e470e743394935a2ba3a18 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130558 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hbox.cxx7
-rw-r--r--hwpfilter/source/hbox.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx
index 6bbf6d22448b..f9c1542b7cab 100644
--- a/hwpfilter/source/hbox.cxx
+++ b/hwpfilter/source/hbox.cxx
@@ -107,6 +107,8 @@ DateFormat::DateFormat()
// date code(8)
DateCode::DateCode()
: HBox(CH_DATE_CODE)
+ , format{0}
+ , date{0}
, dummy(0)
, key(0)
{
@@ -344,6 +346,7 @@ TxtBox::~TxtBox()
Picture::Picture()
: FBox(CH_PICTURE)
+ , reserved{0}
, dummy(0)
, follow_block_size(0)
, dummy1(0)
@@ -352,6 +355,10 @@ Picture::Picture()
, cap_pos(0)
, num(0)
, pictype(0)
+ , skip{0}
+ , scale{0}
+ , picinfo{}
+ , reserved3{0}
, ishyper(false)
{
}
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index 869fedd8ba90..afc208f956e0 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -617,7 +617,7 @@ struct Picture: public FBox
* Ratio of magnification or reduction.
*/
hunit scale[2];
- PicDef picinfo = {};
+ PicDef picinfo;
char reserved3[9];
std::vector<std::unique_ptr<HWPPara>> caption;