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

Issue 26469003: Fix valgrind uninitialized memory complaint (Closed)

Created:
7 years, 2 months ago by robertphillips
Modified:
7 years, 2 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Valgrind complains that the test bitmap image has uninitialized data.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Used eraseColor #

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

Messages

Total messages: 5 (0 generated)
robertphillips
7 years, 2 months ago (2013-10-08 21:42:47 UTC) #1
reed1
https://codereview.chromium.org/26469003/diff/1/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/26469003/diff/1/tests/SurfaceTest.cpp#newcode87 tests/SurfaceTest.cpp:87: memset(testBitmap.getPixels(), 0, testBitmap.getSize()); testBitmap.eraseColor(0);
7 years, 2 months ago (2013-10-08 22:05:36 UTC) #2
robertphillips
https://codereview.chromium.org/26469003/diff/1/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/26469003/diff/1/tests/SurfaceTest.cpp#newcode87 tests/SurfaceTest.cpp:87: memset(testBitmap.getPixels(), 0, testBitmap.getSize()); Haha - yeah - that.
7 years, 2 months ago (2013-10-08 22:15:43 UTC) #3
reed1
lgtm
7 years, 2 months ago (2013-10-09 12:24:35 UTC) #4
robertphillips
7 years, 2 months ago (2013-10-09 12:51:25 UTC) #5
Message was sent while issue was closed.
committed as r11664

Powered by Google App Engine
This is Rietveld 408576698