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

Issue 2907143002: Remove unnecessary decoded frame size overflow check (Closed)

Created:
3 years, 6 months ago by naga
Modified:
3 years, 6 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary decoded frame size overflow check This patch removes unnecessary decoded frame size overflow check in UpdateAggressivePurging(). This calculation will never overflow, because SizeCalculationMayOverflow() would have returned true and resulted in never reaching this code. BUG=None Review-Url: https://codereview.chromium.org/2907143002 Cr-Commit-Position: refs/heads/master@{#479772} Committed: https://chromium.googlesource.com/chromium/src/+/ffb49300060096adc5d1d49594a60fd69c821a64

Patch Set 1 : Initial patch to remove decoded frame size overflow check #

Total comments: 1

Patch Set 2 : Added DCHECK and logs to check the overflow #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp View 1 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 45 (14 generated)
naga
3 years, 6 months ago (2017-05-29 13:04:45 UTC) #5
Srirama
https://codereview.chromium.org/2907143002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp (left): https://codereview.chromium.org/2907143002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp#oldcode412 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp:412: if (frame_memory_usage / 4 != frame_area) { // overflow ...
3 years, 6 months ago (2017-05-30 07:07:39 UTC) #6
Noel Gordon
Yes please look the changes that added this code. Sure looks to me like integer ...
3 years, 6 months ago (2017-05-30 11:40:22 UTC) #7
naga
On 2017/05/30 11:40:22, noel gordon wrote: > Yes please look the changes that added this ...
3 years, 6 months ago (2017-05-30 11:43:13 UTC) #8
naga
On 2017/05/30 07:07:39, Srirama wrote: > https://codereview.chromium.org/2907143002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp > File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp (left): > > https://codereview.chromium.org/2907143002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp#oldcode412 > ...
3 years, 6 months ago (2017-05-30 12:09:55 UTC) #10
cblume
Hello naga, I am the person who originally wrote this code. You can see the ...
3 years, 6 months ago (2017-05-30 18:22:47 UTC) #11
scroggo_chromium
On 2017/05/30 18:22:47, cblume wrote: > Hello naga, > > I am the person who ...
3 years, 6 months ago (2017-05-30 19:27:59 UTC) #12
naga
On 2017/05/30 19:27:59, scroggo_chromium wrote: > On 2017/05/30 18:22:47, cblume wrote: > > Hello naga, ...
3 years, 6 months ago (2017-05-31 03:15:40 UTC) #13
naga
On 2017/05/31 03:15:40, naga wrote: > On 2017/05/30 19:27:59, scroggo_chromium wrote: > > On 2017/05/30 ...
3 years, 6 months ago (2017-05-31 03:31:56 UTC) #14
Noel Gordon
On 2017/05/31 03:31:56, naga wrote: > On 2017/05/31 03:15:40, naga wrote: > > On 2017/05/30 ...
3 years, 6 months ago (2017-05-31 04:23:28 UTC) #15
Noel Gordon
On 2017/05/31 04:23:28, noel gordon wrote: > > > > > provide much value to ...
3 years, 6 months ago (2017-05-31 04:49:00 UTC) #16
Noel Gordon
On 2017/05/31 04:49:00, noel gordon wrote: > On 2017/05/31 04:23:28, noel gordon wrote: > > ...
3 years, 6 months ago (2017-05-31 04:49:58 UTC) #17
naga
On 2017/05/31 04:49:58, noel gordon wrote: > On 2017/05/31 04:49:00, noel gordon wrote: > > ...
3 years, 6 months ago (2017-06-01 03:47:19 UTC) #18
naga
On 2017/05/31 04:49:58, noel gordon wrote: > On 2017/05/31 04:49:00, noel gordon wrote: > > ...
3 years, 6 months ago (2017-06-01 03:47:21 UTC) #19
naga
On 2017/06/01 03:47:21, naga wrote: > On 2017/05/31 04:49:58, noel gordon wrote: > > On ...
3 years, 6 months ago (2017-06-07 14:13:40 UTC) #21
Noel Gordon
On 2017/06/07 14:13:40, naga wrote: > On 2017/06/01 03:47:21, naga wrote: > > On 2017/05/31 ...
3 years, 6 months ago (2017-06-07 16:02:36 UTC) #22
naga
On 2017/06/07 16:02:36, noel gordon wrote: > On 2017/06/07 14:13:40, naga wrote: > > On ...
3 years, 6 months ago (2017-06-13 08:37:30 UTC) #23
scroggo_chromium
On 2017/06/13 08:37:30, naga wrote: > On 2017/06/07 16:02:36, noel gordon wrote: > > On ...
3 years, 6 months ago (2017-06-13 15:01:36 UTC) #24
naga
On 2017/06/13 15:01:36, scroggo_chromium wrote: > On 2017/06/13 08:37:30, naga wrote: > > On 2017/06/07 ...
3 years, 6 months ago (2017-06-13 16:45:37 UTC) #25
cblume
On 2017/06/13 16:45:37, naga wrote: > As I mentioned the description this condition already present ...
3 years, 6 months ago (2017-06-13 17:48:24 UTC) #26
scroggo_chromium
> > > > Second, let me rephrase my question. An overflow was removed in ...
3 years, 6 months ago (2017-06-13 20:37:11 UTC) #27
Noel Gordon
On 2017/06/13 17:48:24, cblume wrote: > On 2017/06/13 16:45:37, naga wrote: > > As I ...
3 years, 6 months ago (2017-06-14 02:24:13 UTC) #28
Noel Gordon
On 2017/06/13 20:37:11, scroggo_chromium wrote: > > > > > Second, let me rephrase my ...
3 years, 6 months ago (2017-06-14 02:34:35 UTC) #29
naga
On 2017/06/14 02:34:35, noel gordon wrote: > On 2017/06/13 20:37:11, scroggo_chromium wrote: > > > ...
3 years, 6 months ago (2017-06-14 04:21:34 UTC) #31
naga
On 2017/06/14 04:21:34, naga wrote: > On 2017/06/14 02:34:35, noel gordon wrote: > > On ...
3 years, 6 months ago (2017-06-14 04:22:24 UTC) #32
scroggo_chromium
> This patch removes unwanted decoded frame size overflow check in > UpdateAggressivePurging(). This calculation ...
3 years, 6 months ago (2017-06-15 14:16:46 UTC) #35
naga
On 2017/06/15 14:16:46, scroggo_chromium wrote: > > This patch removes unwanted decoded frame size overflow ...
3 years, 6 months ago (2017-06-15 14:20:48 UTC) #37
naga
Updated the description based on the comments
3 years, 6 months ago (2017-06-15 16:40:52 UTC) #38
scroggo_chromium
On 2017/06/15 16:40:52, naga wrote: > Updated the description based on the comments LGTM. Thanks!
3 years, 6 months ago (2017-06-15 17:02:38 UTC) #39
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/2907143002/40001
3 years, 6 months ago (2017-06-15 17:19:42 UTC) #42
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 19:04:56 UTC) #45
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ffb49300060096adc5d1d49594a6...

Powered by Google App Engine
This is Rietveld 408576698