From 7176211382cc288750273e16ea7eb206854be33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 16 Dec 2018 20:02:29 +0000 Subject: [PATCH] crashtesting: clamp languagetype param value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e.g. MSVR-34956-mergedlo_utl_ConfigManager-PoC5.rtf Change-Id: I8bc7d7aa2a188b284750b22716009b835d27c669 Reviewed-on: https://gerrit.libreoffice.org/65229 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- writerfilter/source/rtftok/rtfdispatchvalue.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(nParam)))); auto pValue = new RTFValue(aTag.getBcp47()); putNestedAttribute(m_aStates.top().aCharacterSprms, (nKeyword == RTF_DEFLANG ? NS_ooxml::LN_EG_RPrBase_lang -- 2.18.1