diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-05 23:02:25 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-05 23:02:25 -0700 |
commit | 35902e725aa6cc83a317c3b6fdd1926b81b8e44b (patch) | |
tree | 357a0ffaf0c3a532bb041ea585bc3c34ce26526f /core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h | |
parent | 5e8b7356d68e35d7d631a2a917e651a4e7c73b65 (diff) | |
download | pdfium-chromium/2530.tar.xz |
Fix regression in JBIG2 decoding from commit ce37d73.chromium/2530chromium/2529
many callers can tolerate CJBig2_ArithIntDecoder::decode() OOB failure.
BUG=539749, pdfium:209
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1384663007 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h | 2 |
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: |