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

Issue 2230683002: fix 617135 (Closed)

Created:
4 years, 4 months ago by hong_zhang
Modified:
4 years, 4 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

fix 617135 to fix bug 617135 617135 described an exploit against pdfium using a malformed gif. This fix introduced a couple edge case handling lines to address the OOB issue. BUG=617135 Committed: https://pdfium.googlesource.com/pdfium/+/8374fe4a11a513b23297e29d38c376d8cf36e8bf

Patch Set 1 #

Total comments: 2

Patch Set 2 : FX_ArraySize and cleanup helper method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M core/fxcodec/lgif/fx_gif.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxcodec/lgif/fx_gif.cpp View 1 4 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
hong_zhang
Dear all, This is a foxit attempt to fix bug 617135. Please take a look. ...
4 years, 4 months ago (2016-08-10 01:06:57 UTC) #2
Lei Zhang
https://codereview.chromium.org/2230683002/diff/1/core/fxcodec/lgif/fx_gif.cpp File core/fxcodec/lgif/fx_gif.cpp (right): https://codereview.chromium.org/2230683002/diff/1/core/fxcodec/lgif/fx_gif.cpp#newcode974 core/fxcodec/lgif/fx_gif.cpp:974: sizeof(s_gif_interlace_step) / sizeof(int32_t)) { This can be: FX_ArraySize(s_gif_interlace_step)
4 years, 4 months ago (2016-08-10 14:58:31 UTC) #3
Tom Sepez
LGTM otherwise. https://codereview.chromium.org/2230683002/diff/1/core/fxcodec/lgif/fx_gif.cpp File core/fxcodec/lgif/fx_gif.cpp (right): https://codereview.chromium.org/2230683002/diff/1/core/fxcodec/lgif/fx_gif.cpp#newcode975 core/fxcodec/lgif/fx_gif.cpp:975: FX_Free(gif_image_ptr->image_row_buf); Nit: we do this same cleanup ...
4 years, 4 months ago (2016-08-10 17:23:22 UTC) #4
hong_zhang
On 2016/08/10 17:23:22, Tom Sepez wrote: > LGTM otherwise. > > https://codereview.chromium.org/2230683002/diff/1/core/fxcodec/lgif/fx_gif.cpp > File core/fxcodec/lgif/fx_gif.cpp ...
4 years, 4 months ago (2016-08-10 18:06:48 UTC) #5
hong_zhang
Dear all, I uploaded a second patch set. PTAL. Best Regards, -Hong
4 years, 4 months ago (2016-08-10 19:22:03 UTC) #10
Oliver Chang
lgtm
4 years, 4 months ago (2016-08-12 18:38:57 UTC) #11
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/2230683002/20001
4 years, 4 months ago (2016-08-12 22:01:22 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 22:16:01 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/8374fe4a11a513b23297e29d38c376d8cf36...

Powered by Google App Engine
This is Rietveld 408576698