summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 10:58:52 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:12:07 +0000
commitbacf75eeeb5d89fe60b2c77584350ca1b1432bd5 (patch)
treebbf956a86b103f5e470338e585ce8b924b08cd8b /core/fxcrt/xml
parent875e98c581952478f3a3ccef9b2f2e3ed06c5346 (diff)
downloadpdfium-bacf75eeeb5d89fe60b2c77584350ca1b1432bd5.tar.xz
Replace FX_SAFE_STRSIZE with FX_SAFE_SIZE_T
BUG=pdfium:828 Change-Id: If9560338c456b28f968e743a90a3629791d87df0 Reviewed-on: https://pdfium-review.googlesource.com/14832 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/xml')
-rw-r--r--core/fxcrt/xml/cfx_xmlsyntaxparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp b/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp
index 2d1d3d7a08..d72e7afa1d 100644
--- a/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp
+++ b/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp
@@ -106,7 +106,7 @@ CFX_XMLSyntaxParser::CFX_XMLSyntaxParser(
pdfium::base::checked_cast<size_t>(m_pStream->GetLength()));
m_iCurrentPos = m_pStream->GetBOMLength();
- FX_SAFE_STRSIZE alloc_size_safe = m_iXMLPlaneSize;
+ FX_SAFE_SIZE_T alloc_size_safe = m_iXMLPlaneSize;
alloc_size_safe += 1; // For NUL.
if (!alloc_size_safe.IsValid() || alloc_size_safe.ValueOrDie() <= 0) {
m_syntaxParserResult = FX_XmlSyntaxResult::Error;