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

Issue 11576030: Add size checks to extension icons to prevent out of memory conditions (Closed)

Created:
8 years ago by Mustafa Acer
Modified:
8 years ago
Reviewers:
Matt Perry, Evan Stade
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Add size checks to extension icons and favicons to prevent out of memory conditions BUG=165423 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173415

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Mustafa Acer
Hello, can you please take a look at this code? crbug.com/165423
8 years ago (2012-12-14 08:00:06 UTC) #1
Matt Perry
https://codereview.chromium.org/11576030/diff/1003/chrome/browser/ui/webui/extensions/extension_icon_source.cc File chrome/browser/ui/webui/extensions/extension_icon_source.cc (right): https://codereview.chromium.org/11576030/diff/1003/chrome/browser/ui/webui/extensions/extension_icon_source.cc#newcode127 chrome/browser/ui/webui/extensions/extension_icon_source.cc:127: if (request->size>kMaxIconSize) { Move these ifs below. Also, familiarize ...
8 years ago (2012-12-14 18:57:08 UTC) #2
Matt Perry
Please update the CL description with a BUG=<bug number> line.
8 years ago (2012-12-14 18:57:25 UTC) #3
Mustafa Acer
On 2012/12/14 18:57:25, Matt Perry wrote: > Please update the CL description with a BUG=<bug ...
8 years ago (2012-12-14 19:28:40 UTC) #4
Mustafa Acer
Thanks, please take another look. https://codereview.chromium.org/11576030/diff/1004/chrome/browser/ui/webui/favicon_source.cc File chrome/browser/ui/webui/favicon_source.cc (right): https://codereview.chromium.org/11576030/diff/1004/chrome/browser/ui/webui/favicon_source.cc#newcode87 chrome/browser/ui/webui/favicon_source.cc:87: size_in_dip = 16; I'm ...
8 years ago (2012-12-14 19:29:25 UTC) #5
Matt Perry
lgtm https://codereview.chromium.org/11576030/diff/1004/chrome/browser/ui/webui/extensions/extension_icon_source.cc File chrome/browser/ui/webui/extensions/extension_icon_source.cc (right): https://codereview.chromium.org/11576030/diff/1004/chrome/browser/ui/webui/extensions/extension_icon_source.cc#newcode277 chrome/browser/ui/webui/extensions/extension_icon_source.cc:277: size = extension_misc::EXTENSION_ICON_GIGANTOR; Let's return false instead. https://codereview.chromium.org/11576030/diff/1004/chrome/browser/ui/webui/favicon_source.cc ...
8 years ago (2012-12-14 19:33:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@google.com/11576030/6007
8 years ago (2012-12-14 21:15:08 UTC) #7
commit-bot: I haz the power
Presubmit check for 11576030-6007 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-14 21:15:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@google.com/11576030/6007
8 years ago (2012-12-14 21:17:29 UTC) #9
commit-bot: I haz the power
Presubmit check for 11576030-6007 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-14 21:17:31 UTC) #10
Matt Perry
+estade for OWNERS review
8 years ago (2012-12-14 21:37:56 UTC) #11
Evan Stade
lgtm
8 years ago (2012-12-15 02:25:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@google.com/11576030/6007
8 years ago (2012-12-17 02:27:41 UTC) #13
commit-bot: I haz the power
8 years ago (2012-12-17 04:20:43 UTC) #14
Message was sent while issue was closed.
Change committed as 173415

Powered by Google App Engine
This is Rietveld 408576698