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

Issue 10832123: Coverity: Fix a sizeof mismatch. (Closed)

Created:
8 years, 4 months ago by James Hawkins
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Coverity: Fix a sizeof mismatch. It appears the sizeof change was to make the code more future proof: sizeof(float) -> sizeof(audio_data[0]) However, audio_data[0] is a float*, not the intended float. Adding the deref to fix this. CID_COUNT=1 CID=104561 BUG=none R=scherkus Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149770

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M content/renderer/media/render_audiosourceprovider.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
James Hawkins
8 years, 4 months ago (2012-08-02 23:37:51 UTC) #1
scherkus (not reviewing)
lgtm!
8 years, 4 months ago (2012-08-02 23:38:52 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhawkins@chromium.org/10832123/1
8 years, 4 months ago (2012-08-02 23:39:35 UTC) #3
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 01:17:58 UTC) #4
Change committed as 149770

Powered by Google App Engine
This is Rietveld 408576698