[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 7 18:55:29 UTC 2020


 sw/source/filter/ww8/ww8par2.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ee009595f2ff4fe3c9b6fb7bc5720ae14bec460f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 7 16:05:19 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 7 20:54:44 2020 +0200

    ofz#23961 pad back to original length
    
    in case of multi-byte input encoding resulting in a shorter output string than
    input
    
    Change-Id: Ieb4bb7b5f4551ca22e87c573233f083901f3d3c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98268
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index db9f07ec5ce6..407b6e91aae6 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -609,6 +609,9 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFormat &rNum, WW8_ANLV const &rAV,
             return;
         }
         sText = OUString(reinterpret_cast<char const *>(pText), nLen, eCharSet);
+        // ofz#23961 in case of multi-byte input encoding resulting in shorter
+        // output pad to full length with something semi-arbitrary
+        comphelper::string::padToLength(sText, nLen, cBulletChar);
     }
     else
     {


More information about the Libreoffice-commits mailing list