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

Issue 10834013: Added DCHECK() to prevent NULL-pointer dereference (Closed)

Created:
8 years, 5 months ago by Kyle Horimoto
Modified:
8 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Added DCHECK() to prevent NULL-pointer dereference CID=103708 BUG= TEST= TBR=tommi Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148476

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK num_buffers_ instead now. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M media/audio/win/wavein_input_win.cc View 1 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
Kyle Horimoto
8 years, 5 months ago (2012-07-25 21:12:14 UTC) #1
Tyler Breisacher (Chromium)
https://chromiumcodereview.appspot.com/10834013/diff/1/media/audio/win/wavein_input_win.cc File media/audio/win/wavein_input_win.cc (right): https://chromiumcodereview.appspot.com/10834013/diff/1/media/audio/win/wavein_input_win.cc#newcode101 media/audio/win/wavein_input_win.cc:101: DCHECK(first); This can only be NULL if num_buffers_ is ...
8 years, 5 months ago (2012-07-25 21:18:15 UTC) #2
Kyle Horimoto
https://chromiumcodereview.appspot.com/10834013/diff/1/media/audio/win/wavein_input_win.cc File media/audio/win/wavein_input_win.cc (right): https://chromiumcodereview.appspot.com/10834013/diff/1/media/audio/win/wavein_input_win.cc#newcode101 media/audio/win/wavein_input_win.cc:101: DCHECK(first); On 2012/07/25 21:18:15, Tyler Breisacher wrote: > This ...
8 years, 5 months ago (2012-07-25 21:56:40 UTC) #3
Tyler Breisacher (Chromium)
In that case, I would argue that this DCHECK is not the right solution. Maybe ...
8 years, 5 months ago (2012-07-25 22:02:52 UTC) #4
Kyle Horimoto
On 2012/07/25 22:02:52, Tyler Breisacher wrote: > In that case, I would argue that this ...
8 years, 5 months ago (2012-07-25 22:11:47 UTC) #5
Tyler Breisacher (Chromium)
lgtm, hopefully Coverity is smart enough to realize that this fixes the problem.
8 years, 5 months ago (2012-07-25 22:13:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10834013/6001
8 years, 5 months ago (2012-07-25 22:28:21 UTC) #7
commit-bot: I haz the power
Try job failure for 10834013-6001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-25 23:52:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10834013/6001
8 years, 5 months ago (2012-07-25 23:55:59 UTC) #9
commit-bot: I haz the power
Change committed as 148476
8 years, 5 months ago (2012-07-26 02:13:57 UTC) #10
James Hawkins
8 years, 5 months ago (2012-07-26 17:20:26 UTC) #11
https://chromiumcodereview.appspot.com/10834013/diff/6001/media/audio/win/wav...
File media/audio/win/wavein_input_win.cc (right):

https://chromiumcodereview.appspot.com/10834013/diff/6001/media/audio/win/wav...
media/audio/win/wavein_input_win.cc:38: DCHECK(num_buffers_ > 0);
DCHECK_LE(0, num_buffers_)

Powered by Google App Engine
This is Rietveld 408576698