From 7886d8dcf3bc9ef9b51e733d77bd3243ef32adb8 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 1 Oct 2015 15:12:49 -0700 Subject: 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 . --- core/src/fxcodec/jbig2/JBig2_Context.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') 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( -- cgit v1.2.3