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

Issue 548343002: When parsing arguments on Windows, check malloc() for failure. (Closed)

Created:
6 years, 3 months ago by Stephen White
Modified:
6 years, 3 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

When parsing arguments on Windows, check malloc() for failure. Note: this code is only executed by Skia utilities AFAIK, not by external clients. BUG=skia:2642 Committed: https://skia.googlesource.com/skia/+/4459a0448d84d4adb53984227fbee4c581f13a98

Patch Set 1 #

Patch Set 2 : Do early-exit on malloc failure #

Patch Set 3 : Use sk_malloc_throw in place of malloc() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/views/win/skia_win.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Stephen White
Rob: PTAL. Thanks!
6 years, 3 months ago (2014-09-08 14:59:06 UTC) #2
reed1
1. Even our utils should probably call sk_malloc_throw instead of raw malloc 2. Is the ...
6 years, 3 months ago (2014-09-08 15:14:25 UTC) #4
Stephen White
On 2014/09/08 15:14:25, reed1 wrote: > 1. Even our utils should probably call sk_malloc_throw instead ...
6 years, 3 months ago (2014-09-08 15:28:00 UTC) #5
Stephen White
reed@: PTAL. Thanks!
6 years, 3 months ago (2014-09-08 16:25:47 UTC) #7
Stephen White
reed@: ping?
6 years, 3 months ago (2014-09-09 19:14:02 UTC) #8
reed1
lgtm
6 years, 3 months ago (2014-09-09 19:16:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/senorblanco@chromium.org/548343002/40001
6 years, 3 months ago (2014-09-09 19:27:45 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-09 19:37:19 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 4459a0448d84d4adb53984227fbee4c581f13a98

Powered by Google App Engine
This is Rietveld 408576698