diff options
author | JUN FANG <jun_fang@foxitsoftware.com> | 2015-04-13 10:34:10 -0700 |
---|---|---|
committer | JUN FANG <jun_fang@foxitsoftware.com> | 2015-04-13 10:44:51 -0700 |
commit | 63de95b699a4374982c2ddffced89e0da028fe4c (patch) | |
tree | 227c497f0f9200c0d1baffc760705c6653f3c248 /core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp | |
parent | c0c944cb1adadede295af97fb272feb7050d9c0a (diff) | |
download | pdfium-63de95b699a4374982c2ddffced89e0da028fe4c.tar.xz |
Merge to XFA: Fix a heap overflow in CJBig2_Context::parseSymbolDict
BUG=476107
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1080893002
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp b/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp index 6179317890..53faab4a46 100644 --- a/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp +++ b/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp @@ -61,6 +61,8 @@ extern const JBig2ArithQe QeTable[] = { { 0x5601, 46, 46, 0 } }; +extern const unsigned int JBIG2_QE_NUM = sizeof(QeTable) / sizeof(JBig2ArithQe); + CJBig2_Image *CJBig2_GRDProc::decode_Arith(CJBig2_ArithDecoder *pArithDecoder, JBig2ArithCtx *gbContext) { if (GBW == 0 || GBH == 0) { |