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

Caolán McNamara caolanm at redhat.com
Wed Feb 21 09:25:16 UTC 2018


 hwpfilter/source/hcode.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f9de525ed646a37e6bc28a40ec1152a613db9218
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 20 16:33:38 2018 +0000

    forcepoint #2
    
    Thanks to Antti Levomäki and Christian Jalio from Forcepoint.
    
    Change-Id: Ie2b644a3c4c1c165334768eea73d451f07f97def
    Reviewed-on: https://gerrit.libreoffice.org/50054
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx
index 230f396be7d5..0aedfb11d1db 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -1217,6 +1217,8 @@ hchar_string hstr2ucsstr(hchar const* hstr)
 hchar_string kstr2hstr(unsigned char const* src)
 {
     hchar_string ret;
+    if (!src)
+        return ret;
     for (unsigned int i = 0; src[i] != '\0' ; i++)
     {
         if ( src[i] < 127 )


More information about the Libreoffice-commits mailing list