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

Issue 285393002: Fixes use-of-uninitialized-value MSan error in image_skia_unittest (Closed)

Created:
6 years, 7 months ago by Jun Mukai
Modified:
6 years, 7 months ago
Reviewers:
oshima
CC:
chromium-reviews, rsesek+watch_chromium.org
Visibility:
Public.

Description

Fixes use-of-uninitialized-value MSan error in image_skia_unittest The existing test code returns an empty ImageSkiaRep where bytes are allocated but nothing is initialized. This was okay because ImageSkiaTest doesn't touch the contents of the image. Now ImageSkia can rescale the image data and such cases are tested. So using a dummy ImageSkiaRep wouldn't be helthy. Rather some data should be drawn. BUG=373748 R=oshima@chromium.org TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270970

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M ui/gfx/image/image_skia_rep.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/image/image_skia_rep.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Jun Mukai
I believe this patch fixes the issue (are there any trybots to verify?)
6 years, 7 months ago (2014-05-15 15:59:53 UTC) #1
oshima
https://codereview.chromium.org/285393002/diff/1/ui/gfx/image/image_skia_unittest.cc File ui/gfx/image/image_skia_unittest.cc (left): https://codereview.chromium.org/285393002/diff/1/ui/gfx/image/image_skia_unittest.cc#oldcode57 ui/gfx/image/image_skia_unittest.cc:57: return gfx::ImageSkiaRep(size_, scale); this constructor is used in other ...
6 years, 7 months ago (2014-05-15 16:14:13 UTC) #2
earthdok
On 2014/05/15 15:59:53, Jun Mukai wrote: > I believe this patch fixes the issue (are ...
6 years, 7 months ago (2014-05-15 16:18:18 UTC) #3
Jun Mukai
https://codereview.chromium.org/285393002/diff/1/ui/gfx/image/image_skia_unittest.cc File ui/gfx/image/image_skia_unittest.cc (left): https://codereview.chromium.org/285393002/diff/1/ui/gfx/image/image_skia_unittest.cc#oldcode57 ui/gfx/image/image_skia_unittest.cc:57: return gfx::ImageSkiaRep(size_, scale); On 2014/05/15 16:14:13, oshima wrote: > ...
6 years, 7 months ago (2014-05-16 01:57:33 UTC) #4
oshima
lgtm
6 years, 7 months ago (2014-05-16 03:23:39 UTC) #5
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 7 months ago (2014-05-16 04:18:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/285393002/20001
6 years, 7 months ago (2014-05-16 04:19:16 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 06:06:22 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 06:59:29 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/154417)
6 years, 7 months ago (2014-05-16 06:59:30 UTC) #10
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 7 months ago (2014-05-16 07:11:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/285393002/20001
6 years, 7 months ago (2014-05-16 07:11:37 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 08:06:28 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-16 09:11:08 UTC) #14
Message was sent while issue was closed.
Change committed as 270970

Powered by Google App Engine
This is Rietveld 408576698