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

Issue 2419553002: Verify number of ex flags matches number of ex items. (Closed)

Created:
4 years, 2 months ago by dsinclair
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, kcwu
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Verify number of ex flags matches number of ex items. Currently the JBig2 decoder can leak subimages in the case where we mark more items in EXFLAGS then we have SDNUMEXSYMS. This Cl checks for this condition and fails the decode if it happens. BUG=chromium:654365 Committed: https://pdfium.googlesource.com/pdfium/+/6e5239c6e3891d78e7b9e8262c23cd129f0cdbb7

Patch Set 1 #

Total comments: 5

Patch Set 2 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M core/fxcodec/jbig2/JBig2_SddProc.cpp View 1 6 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
dsinclair
PTAL. This is a guess as to the right functionality. In the specific file given ...
4 years, 2 months ago (2016-10-12 16:17:11 UTC) #4
Tom Sepez
lgtm https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp File core/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp#newcode252 core/fxcodec/jbig2/JBig2_SddProc.cpp:252: if (EXINDEX > SDNUMEXSYMS) { This is fine, ...
4 years, 2 months ago (2016-10-12 16:27:43 UTC) #5
kcwu
https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp File core/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp#newcode252 core/fxcodec/jbig2/JBig2_SddProc.cpp:252: if (EXINDEX > SDNUMEXSYMS) { Since SDNUMEXSYMS is always ...
4 years, 2 months ago (2016-10-12 16:41:47 UTC) #8
dsinclair
On 2016/10/12 16:41:47, kcwu wrote: > https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp > File core/fxcodec/jbig2/JBig2_SddProc.cpp (right): > > https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp#newcode252 > ...
4 years, 2 months ago (2016-10-12 17:14:44 UTC) #9
kcwu
https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp File core/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp#newcode252 core/fxcodec/jbig2/JBig2_SddProc.cpp:252: if (EXINDEX > SDNUMEXSYMS) { On 2016/10/12 16:41:47, kcwu ...
4 years, 2 months ago (2016-10-12 23:49:59 UTC) #10
dsinclair
PTAL. https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp File core/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/2419553002/diff/1/core/fxcodec/jbig2/JBig2_SddProc.cpp#newcode580 core/fxcodec/jbig2/JBig2_SddProc.cpp:580: if (EXINDEX > SDNUMEXSYMS) { On 2016/10/12 23:49:58, ...
4 years, 2 months ago (2016-10-13 14:12:17 UTC) #11
kcwu
lgtm
4 years, 2 months ago (2016-10-13 14:35:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2419553002/20001
4 years, 2 months ago (2016-10-13 14:41:55 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 14:54:12 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/6e5239c6e3891d78e7b9e8262c23cd129f0c...

Powered by Google App Engine
This is Rietveld 408576698