summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Context.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-11-07 19:16:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 19:16:35 +0000
commit826f2223fb0414144d7a627d5d0264da1a5ce82e (patch)
tree14c41a5d1c9ad0262a189f03c80745bb5e0356af /core/fxcodec/jbig2/JBig2_Context.cpp
parentc9653fb272dd2d006a2725c42b5a36ffafb099a7 (diff)
downloadpdfium-826f2223fb0414144d7a627d5d0264da1a5ce82e.tar.xz
Use MaybeOwned in CJBig2_Image
Change-Id: Id53cbb8c95f6eb929f6e4eb57333daa24f1b776f Reviewed-on: https://pdfium-review.googlesource.com/18010 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Context.cpp')
-rw-r--r--core/fxcodec/jbig2/JBig2_Context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Context.cpp b/core/fxcodec/jbig2/JBig2_Context.cpp
index 7c79ad8802..53e6b7a84a 100644
--- a/core/fxcodec/jbig2/JBig2_Context.cpp
+++ b/core/fxcodec/jbig2/JBig2_Context.cpp
@@ -388,7 +388,7 @@ int32_t CJBig2_Context::ProcessingParseSegmentData(CJBig2_Segment* pSegment,
pdfium::MakeUnique<CJBig2_Image>(pPageInfo->m_dwWidth, height);
}
- if (!m_pPage->m_pData) {
+ if (!m_pPage->data()) {
m_ProcessingStatus = FXCODEC_STATUS_ERROR;
return JBIG2_ERROR_TOO_SHORT;
}