diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-12 09:51:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-12 18:40:17 +0100 |
commit | 6c9e722fa989ce9530569be2342c67ffd141c466 (patch) | |
tree | d21f139dc58ed8ef14113298e130ed1043353698 /lotuswordpro | |
parent | dd7f4f02a547d0437b65adf6966fb7a9520b9dd0 (diff) |
ofz#43551 Use-of-uninitialized-value
Change-Id: I2eb139f3bff296cff7d8f0e9a05f19df56b27ecd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128313
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index dfaa84b02217..9c721e74756a 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -1024,6 +1024,7 @@ void LwpDrawTextBox::Read() m_pStream->ReadInt16( m_aTextRec.nTextHeight ); m_pStream->ReadBytes(m_aTextRec.tmpTextFaceName, DRAW_FACESIZE); + m_aTextRec.tmpTextFaceName[DRAW_FACESIZE - 1] = 0; m_pStream->SeekRel(1);// PitchAndFamily m_pStream->ReadInt16( m_aTextRec.nTextSize ); @@ -1223,6 +1224,7 @@ void LwpDrawTextArt::Read() m_pStream->SeekRel(1); m_pStream->ReadBytes(m_aTextArtRec.tmpTextFaceName, DRAW_FACESIZE); + m_aTextArtRec.tmpTextFaceName[DRAW_FACESIZE - 1] = 0; m_pStream->SeekRel(1);// PitchAndFamily m_pStream->ReadInt16( m_aTextArtRec.nTextSize ); |