Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Issue 1374633004: Disable JBIG2 cache; prevent data corruption - try 2. (Closed)

Created:
5 years, 2 months ago by Lei Zhang
Modified:
5 years, 2 months ago
Reviewers:
jbreiden, Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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 Committed: https://pdfium.googlesource.com/pdfium/+/fd12ec5584d9a17f310a2c0c408a438ef3b1ce63

Patch Set 1 #

Total comments: 2

Patch Set 2 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -16 lines) Patch
M core/src/fxcodec/jbig2/JBig2_Context.cpp View 1 3 chunks +10 lines, -3 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_SymbolDict.h View 2 chunks +9 lines, -6 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp View 2 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lei Zhang
If I set |kSymbolDictCacheMaxSize| to 0, I get compiler warnings.
5 years, 2 months ago (2015-10-04 06:23:08 UTC) #1
Tom Sepez
https://codereview.chromium.org/1374633004/diff/1/core/src/fxcodec/jbig2/JBig2_Context.cpp File core/src/fxcodec/jbig2/JBig2_Context.cpp (right): https://codereview.chromium.org/1374633004/diff/1/core/src/fxcodec/jbig2/JBig2_Context.cpp#newcode28 core/src/fxcodec/jbig2/JBig2_Context.cpp:28: #define DISABLE_SYMBOL_CACHE 1 nit: some reason why we we ...
5 years, 2 months ago (2015-10-04 23:57:48 UTC) #2
Lei Zhang
https://codereview.chromium.org/1374633004/diff/1/core/src/fxcodec/jbig2/JBig2_Context.cpp File core/src/fxcodec/jbig2/JBig2_Context.cpp (right): https://codereview.chromium.org/1374633004/diff/1/core/src/fxcodec/jbig2/JBig2_Context.cpp#newcode28 core/src/fxcodec/jbig2/JBig2_Context.cpp:28: #define DISABLE_SYMBOL_CACHE 1 On 2015/10/04 23:57:48, Tom Sepez wrote: ...
5 years, 2 months ago (2015-10-05 00:38:26 UTC) #3
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-05 16:36:23 UTC) #4
Lei Zhang
5 years, 2 months ago (2015-10-05 17:16:28 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
fd12ec5584d9a17f310a2c0c408a438ef3b1ce63 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698