summaryrefslogtreecommitdiff
path: root/core/src/fxcodec
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-01 15:26:38 -0700
committerLei Zhang <thestig@chromium.org>2015-10-01 15:26:38 -0700
commit2852ddc187af249f48b70cc7d22dcaf83fcd9286 (patch)
tree97d04a4c96488a69de15226d58ad6a105fb374b6 /core/src/fxcodec
parent24a3b4ea99a40cc251b68561469b9099419adfe9 (diff)
downloadpdfium-2852ddc187af249f48b70cc7d22dcaf83fcd9286.tar.xz
Merge to XFA: Disable JBIG2 cache; prevent data corruption
BUG=pdfium:207 Original author: jbreiden@google.com Original CL: http://codereview.chromium.org/1362133003/ TBR=jbreiden@google.com Review URL: https://codereview.chromium.org/1382073002 . (cherry picked from commit 7886d8dcf3bc9ef9b51e733d77bd3243ef32adb8) Review URL: https://codereview.chromium.org/1379603004 .
Diffstat (limited to 'core/src/fxcodec')
-rw-r--r--core/src/fxcodec/jbig2/JBig2_Context.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_Context.cpp b/core/src/fxcodec/jbig2/JBig2_Context.cpp
index bd2421e3f9..2e2cf9eeee 100644
--- a/core/src/fxcodec/jbig2/JBig2_Context.cpp
+++ b/core/src/fxcodec/jbig2/JBig2_Context.cpp
@@ -22,6 +22,9 @@
// list keeps track of the freshness of entries, with freshest ones
// at the front. Even a tiny cache size like 2 makes a dramatic
// difference for typical JBIG2 documents.
+//
+// Disabled until we can figure out how to clear cache between documents.
+// https://code.google.com/p/pdfium/issues/detail?id=207
static const int kSymbolDictCacheMaxSize = 2;
CJBig2_Context* CJBig2_Context::CreateContext(