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

Issue 2391073003: ICO: Skip checking declared entry bounds when file is completelly received. (Closed)

Created:
4 years, 2 months ago by aleksandar.stojiljkovic
Modified:
4 years, 2 months ago
CC:
blink-reviews, chromium-reviews, leonhsl(Using Gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ICO: Skip checking declared entry bounds when file is completelly received. It is relativelly common that the last entry offset + bytesize is two bytes over file byte size. When calculating frame count, return entry count and allow decoder to decode file. BUG=653075 Committed: https://crrev.com/c3f6d43c1b2d245063da70a1d49247e8e2d5ee21 Cr-Commit-Position: refs/heads/master@{#423398}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Comment and refactor - thanks pkasting@. #

Patch Set 3 : ico used in test was valid, replacing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M content/test/data/invalid.ico View 1 2 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/resources/bug653075.ico View Binary file 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp View 1 1 chunk +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoderTest.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
aleksandar.stojiljkovic
4 years, 2 months ago (2016-10-05 18:07:22 UTC) #2
scroggo_chromium
lgtm
4 years, 2 months ago (2016-10-05 18:53:38 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/2391073003/diff/1/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp (right): https://codereview.chromium.org/2391073003/diff/1/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp#newcode135 third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp:135: // See crbug.com/653075. Nit: I'd like this comment ...
4 years, 2 months ago (2016-10-05 19:03:27 UTC) #4
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/2391073003/20001
4 years, 2 months ago (2016-10-05 19:17:29 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/236601)
4 years, 2 months ago (2016-10-05 19:51:48 UTC) #9
aleksandar.stojiljkovic
ico file that was used in test was valid (works fine in GIMP, Safari and ...
4 years, 2 months ago (2016-10-05 20:47:41 UTC) #10
aleksandar.stojiljkovic
Patch Set 3 : ico used in test was valid, replacing. > On 2016/10/05 20:47:41, ...
4 years, 2 months ago (2016-10-05 20:54:25 UTC) #12
Ken Rockot(use gerrit already)
Can you please explain the difference in invalid.ico? What is changing here?
4 years, 2 months ago (2016-10-05 22:06:03 UTC) #13
aleksandar.stojiljkovic
On 2016/10/05 22:06:03, Ken Rockot wrote: > Can you please explain the difference in invalid.ico? ...
4 years, 2 months ago (2016-10-05 22:40:41 UTC) #14
Ken Rockot(use gerrit already)
On 2016/10/05 at 22:40:41, aleksandar.stojiljkovic wrote: > On 2016/10/05 22:06:03, Ken Rockot wrote: > > ...
4 years, 2 months ago (2016-10-05 22:42:09 UTC) #15
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/2391073003/40001
4 years, 2 months ago (2016-10-05 22:43:57 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 02:21:27 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 02:23:29 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c3f6d43c1b2d245063da70a1d49247e8e2d5ee21
Cr-Commit-Position: refs/heads/master@{#423398}

Powered by Google App Engine
This is Rietveld 408576698