summaryrefslogtreecommitdiff
path: root/core/src/fxcodec
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-01 15:12:49 -0700
committerLei Zhang <thestig@chromium.org>2015-10-01 15:12:49 -0700
commit7886d8dcf3bc9ef9b51e733d77bd3243ef32adb8 (patch)
treef67a125d87b26ee933bfd85eee1cd8a240bbf417 /core/src/fxcodec
parent022da0014faa103901ec107ed6a33e5ab00c7931 (diff)
downloadpdfium-7886d8dcf3bc9ef9b51e733d77bd3243ef32adb8.tar.xz
Disable JBIG2 cache; prevent data corruption
BUG=pdfium:207 Original author: jbreiden@google.com Original CL: http://codereview.chromium.org/1362133003/ R=jbreiden@google.com Review URL: https://codereview.chromium.org/1382073002 .
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(