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

Issue 18904003: Increase safety of PictureTest (Closed)

Created:
7 years, 5 months ago by Tom Hudson
Modified:
7 years, 5 months ago
Reviewers:
reed1, tomhudson
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

When gather pixel refs was broken, REPORTER_ASSERT(data) realized that data was NULL, but subsequent lines dereferenced it anyway, and so segfaulted. Committed: http://code.google.com/p/skia/source/detail?r=9933

Patch Set 1 #

Patch Set 2 : After testing provide an actual fix #

Total comments: 2

Patch Set 3 : use if() instead of lots of && in asserts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M tests/PictureTest.cpp View 1 2 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tomhudson
I think anybody on the team could review this, but Mike, you wrote the original ...
7 years, 5 months ago (2013-07-09 14:23:09 UTC) #1
reed1
https://codereview.chromium.org/18904003/diff/3/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/18904003/diff/3/tests/PictureTest.cpp#newcode191 tests/PictureTest.cpp:191: REPORTER_ASSERT(reporter, NULL != data); If we're going to do ...
7 years, 5 months ago (2013-07-09 14:28:14 UTC) #2
tomhudson
Oops, the "NULL !=" isn't necessary, that was part of my initial guess about the ...
7 years, 5 months ago (2013-07-09 14:57:37 UTC) #3
reed1
lgtm
7 years, 5 months ago (2013-07-09 15:19:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/18904003/6001
7 years, 5 months ago (2013-07-09 15:31:50 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-09 16:04:34 UTC) #6
Message was sent while issue was closed.
Change committed as 9933

Powered by Google App Engine
This is Rietveld 408576698