From 4022f87eb8716155291543efaaf289e51d7cbf43 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 23 Jan 2017 14:36:20 -0800 Subject: Update safe numerics package to get bitwise ops Fix callers conventions to avoid ambiguity. Fix bad bounds check unmasked by change. Directly include headers no longer pulled in by numerics itself. Review-Url: https://codereview.chromium.org/2640143003 --- xfa/fde/xml/fde_xml_imp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fde/xml') diff --git a/xfa/fde/xml/fde_xml_imp.cpp b/xfa/fde/xml/fde_xml_imp.cpp index e54b4167f6..5ce274bbdb 100644 --- a/xfa/fde/xml/fde_xml_imp.cpp +++ b/xfa/fde/xml/fde_xml_imp.cpp @@ -1287,7 +1287,8 @@ void CFDE_XMLSyntaxParser::Init(const CFX_RetainPtr& pStream, return; } - m_pBuffer = FX_Alloc(FX_WCHAR, alloc_size_safe.ValueOrDie()); + m_pBuffer = FX_Alloc( + FX_WCHAR, pdfium::base::ValueOrDieForType(alloc_size_safe)); m_pStart = m_pEnd = m_pBuffer; ASSERT(!m_BlockBuffer.IsInitialized()); m_BlockBuffer.InitBuffer(); -- cgit v1.2.3