Disable JBIG2 cache; prevent data corruption
authorLei Zhang <thestig@chromium.org>
Thu, 1 Oct 2015 22:12:49 +0000 (15:12 -0700)
committerLei Zhang <thestig@chromium.org>
Thu, 1 Oct 2015 22:12:49 +0000 (15:12 -0700)
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

index bd2421e..2e2cf9e 100644 (file)
@@ -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(