Disable JBIG2 cache; prevent data corruption - try 2.
authorLei Zhang <thestig@chromium.org>
Mon, 5 Oct 2015 17:16:20 +0000 (10:16 -0700)
committerLei Zhang <thestig@chromium.org>
Mon, 5 Oct 2015 17:16:20 +0000 (10:16 -0700)
commitfd12ec5584d9a17f310a2c0c408a438ef3b1ce63
treeed9272ed2544339f63d9c757a1d14a9778ad4e9d
parenteda27bd13270f5324ce3caa34a09a40cffc4026f
Disable JBIG2 cache; prevent data corruption - try 2.

Also change CJBig2_SymbolDict::DeepCopy() to return a unique_ptr to
prevent a potential leak if the cache size was 0.

BUG=pdfium:207
R=tsepez@chromium.org, jbreiden@google.com

Review URL: https://codereview.chromium.org/1374633004 .
core/src/fxcodec/jbig2/JBig2_Context.cpp
core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp
core/src/fxcodec/jbig2/JBig2_SymbolDict.h