writerfilter/source/rtftok/rtfdispatchvalue.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7176211382cc288750273e16ea7eb206854be33f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Dec 16 20:02:29 2018 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Dec 16 21:57:01 2018 +0100

    crashtesting: clamp languagetype param value
    
    e.g. MSVR-34956-mergedlo_utl_ConfigManager-PoC5.rtf
    
    Change-Id: I8bc7d7aa2a188b284750b22716009b835d27c669
    Reviewed-on: https://gerrit.libreoffice.org/65229
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/writerfilter/source/rtftok/rtfdispatchvalue.cxx 
b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
index a83d35701020..a72fd00db2c3 100644
--- a/writerfilter/source/rtftok/rtfdispatchvalue.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
@@ -501,7 +501,7 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword 
nKeyword, int nParam)
         case RTF_DEFLANG:
         case RTF_ADEFLANG:
         {
-            LanguageTag aTag((LanguageType(nParam)));
+            LanguageTag aTag((LanguageType(static_cast<sal_uInt16>(nParam))));
             auto pValue = new RTFValue(aTag.getBcp47());
             putNestedAttribute(m_aStates.top().aCharacterSprms,
                                (nKeyword == RTF_DEFLANG ? 
NS_ooxml::LN_EG_RPrBase_lang
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to