summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-07 21:30:06 -0700
committerLei Zhang <thestig@chromium.org>2015-10-07 21:30:06 -0700
commit1862e57553c857596b29db8a176a98ade956ea1b (patch)
treec50b21d90755a63dc21b932ddd15569bbe179da8 /core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h
parentdcdd29e266c282dc4020f297fcb5e5da9c1f1537 (diff)
downloadpdfium-1862e57553c857596b29db8a176a98ade956ea1b.tar.xz
Merge to XFA: Fix regression in JBIG2 decoding from commit ce37d73.
many callers can tolerate CJBig2_ArithIntDecoder::decode() OOB failure. BUG=539749, pdfium:209 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1384663007 . (cherry picked from commit 35902e725aa6cc83a317c3b6fdd1926b81b8e44b) Review URL: https://codereview.chromium.org/1396663003 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h')
-rw-r--r--core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h b/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h
index f31636b77c..391004b561 100644
--- a/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h
+++ b/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h
@@ -17,6 +17,8 @@ class CJBig2_ArithIntDecoder {
CJBig2_ArithIntDecoder();
~CJBig2_ArithIntDecoder();
+ // Returns true on success, and false when an OOB condition occurs. Many
+ // callers can tolerate OOB and do not check the return value.
bool decode(CJBig2_ArithDecoder* pArithDecoder, int* nResult);
private: