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

Issue 2335263002: Fix crash in canvas.toBlob caused by allocation failure (Closed)

Created:
4 years, 3 months ago by Justin Novosad
Modified:
4 years, 3 months ago
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, Rik, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash and potential crashes caused by ImageBuffer allocation failure. This CL add null ptr checks in a few places that need them. BUG=644644 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/9d280866e11c2c038005452c8d14fb3ffa91ac2c Cr-Commit-Position: refs/heads/master@{#418563}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix++ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -11 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 4 chunks +14 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (22 generated)
Justin Novosad
PTAL
4 years, 3 months ago (2016-09-13 16:37:42 UTC) #4
xidachen
Please also null check: WebGLRenderingContextBase.cpp:4266 https://codereview.chromium.org/2335263002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2335263002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode307 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:307: if (m_context->is2d() && buffer()->isAccelerated() ...
4 years, 3 months ago (2016-09-13 16:53:03 UTC) #5
Justin Novosad
Done.
4 years, 3 months ago (2016-09-13 17:11:42 UTC) #10
xidachen
lgtm
4 years, 3 months ago (2016-09-13 17:16:18 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/2335263002/20001
4 years, 3 months ago (2016-09-13 17:20:24 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/258446)
4 years, 3 months ago (2016-09-13 17:27:58 UTC) #16
xidachen
On 2016/09/13 17:27:58, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-13 17:30:12 UTC) #17
xidachen
+senorblanco@: needs L-G-T-M from an OWNER of modules/
4 years, 3 months ago (2016-09-13 17:31:37 UTC) #19
Justin Novosad
+ kbr for webgl OWNER
4 years, 3 months ago (2016-09-13 17:32:29 UTC) #21
Ken Russell (switch to Gerrit)
Seems fine. LGTM
4 years, 3 months ago (2016-09-13 17:44:53 UTC) #22
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/2335263002/20001
4 years, 3 months ago (2016-09-13 17:46:23 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/292195)
4 years, 3 months ago (2016-09-13 20:52:05 UTC) #26
Stephen White
LGTM
4 years, 3 months ago (2016-09-13 22:09:18 UTC) #28
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/2335263002/20001
4 years, 3 months ago (2016-09-14 14:54:23 UTC) #34
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-14 14:59:25 UTC) #36
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 15:00:41 UTC) #38
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9d280866e11c2c038005452c8d14fb3ffa91ac2c
Cr-Commit-Position: refs/heads/master@{#418563}

Powered by Google App Engine
This is Rietveld 408576698