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

Issue 2007563002: Adding a some checks and switching out a few assert for RTC_[D]CHECK. (Closed)

Created:
4 years, 7 months ago by tommi
Modified:
4 years, 7 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding a some checks and switching out a few assert for RTC_[D]CHECK. These changes are around use of AudioFrame.data_ to help us catch issues earlier since assert() is left out in release builds, including builds with DCHECK enabled. I've also added a few full-on CHECKs to avoid reading past buffer boundaries or continuing on in a failed state. BUG=chromium:613482 NOTRY=true (using notry due to offline android_arm64_rel bot) Committed: https://crrev.com/d36df89d40bde3c62ee5cbff841933e50b3c007b Cr-Commit-Position: refs/heads/master@{#12870}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Split input verification test into multiple and include death tests #

Patch Set 3 : Improve checks #

Patch Set 4 : Turn FailOnZeroDesiredFrequency test into a death test #

Patch Set 5 : Fix death tests and problem with RTC_DCHECK_ON not being defined (+format) #

Patch Set 6 : Remove ExternalMixingResamplingToInvalidFrequenciesFails since voe_auto_test has multiple threads r… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -36 lines) Patch
M webrtc/common_audio/resampler/push_resampler.cc View 3 chunks +13 lines, -3 lines 0 comments Download
M webrtc/common_audio/resampler/push_resampler_unittest.cc View 1 2 3 4 2 chunks +25 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/external_media_test.cc View 1 2 3 4 5 1 chunk +0 lines, -17 lines 0 comments Download
M webrtc/voice_engine/utility.cc View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 47 (17 generated)
tommi
4 years, 7 months ago (2016-05-23 13:54:10 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/1
4 years, 7 months ago (2016-05-23 13:54:23 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_ubsan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan/builds/2281) linux_ubsan_vptr on ...
4 years, 7 months ago (2016-05-23 14:03:25 UTC) #6
hlundin-webrtc
LG, but consider my suggestions. And, you've got some red tests to figure out... :) ...
4 years, 7 months ago (2016-05-24 06:38:03 UTC) #7
tommi
On 2016/05/24 06:38:03, hlundin-webrtc wrote: > LG, but consider my suggestions. And, you've got some ...
4 years, 7 months ago (2016-05-24 07:07:24 UTC) #8
tommi
On 2016/05/24 07:07:24, tommi-webrtc wrote: > On 2016/05/24 06:38:03, hlundin-webrtc wrote: > > LG, but ...
4 years, 7 months ago (2016-05-24 07:10:19 UTC) #9
tommi
Split input verification test into multiple and include death tests
4 years, 7 months ago (2016-05-24 07:17:16 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/20001
4 years, 7 months ago (2016-05-24 07:17:36 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_ubsan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan/builds/2310)
4 years, 7 months ago (2016-05-24 07:23:44 UTC) #14
tommi
Improve checks
4 years, 7 months ago (2016-05-24 07:25:36 UTC) #15
tommi
Turn FailOnZeroDesiredFrequency test into a death test
4 years, 7 months ago (2016-05-24 07:27:52 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/60001
4 years, 7 months ago (2016-05-24 07:47:57 UTC) #18
tommi
I've changed the existing test code into death tests where appropriate (no test code actually ...
4 years, 7 months ago (2016-05-24 07:49:03 UTC) #19
tommi
https://codereview.webrtc.org/2007563002/diff/1/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2007563002/diff/1/webrtc/voice_engine/channel.cc#newcode2996 webrtc/voice_engine/channel.cc:2996: RTC_CHECK(length <= sizeof(_audioFrame.data_)); On 2016/05/24 06:38:03, hlundin-webrtc wrote: > ...
4 years, 7 months ago (2016-05-24 07:49:14 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/15380)
4 years, 7 months ago (2016-05-24 07:52:35 UTC) #22
tommi
Fix death tests and problem with RTC_DCHECK_ON not being defined (+format)
4 years, 7 months ago (2016-05-24 08:13:37 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/80001
4 years, 7 months ago (2016-05-24 08:14:09 UTC) #25
tommi
OK, there was a pebkac problem. I had to include checks.h to actually force RTC_DCHECK_ON ...
4 years, 7 months ago (2016-05-24 08:14:53 UTC) #26
henrika_webrtc
Nice work Tommi ;-) Tried it in Chrome with a few clients just in case?
4 years, 7 months ago (2016-05-24 08:18:09 UTC) #27
tommi
On 2016/05/24 08:18:09, henrika_webrtc wrote: > Nice work Tommi ;-) Tried it in Chrome with ...
4 years, 7 months ago (2016-05-24 08:31:42 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_baremetal on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/11535)
4 years, 7 months ago (2016-05-24 08:56:08 UTC) #30
tommi
Remove ExternalMixingResamplingToInvalidFrequenciesFails since voe_auto_test has multiple threads running and death tests don't cope well with ...
4 years, 7 months ago (2016-05-24 09:47:13 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/100001
4 years, 7 months ago (2016-05-24 09:48:25 UTC) #33
hlundin-webrtc
lgtm
4 years, 7 months ago (2016-05-24 10:46:27 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-24 11:48:59 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/100001
4 years, 7 months ago (2016-05-24 12:44:18 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007563002/100001
4 years, 7 months ago (2016-05-24 12:47:05 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-24 12:49:10 UTC) #44
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d36df89d40bde3c62ee5cbff841933e50b3c007b Cr-Commit-Position: refs/heads/master@{#12870}
4 years, 7 months ago (2016-05-24 12:49:18 UTC) #46
tommi
4 years, 7 months ago (2016-05-24 13:44:10 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.webrtc.org/2006243002/ by tommi@webrtc.org.

The reason for reverting is: Reverting temporarily.  Need to fix tests
downstream that pass invalid arguments..

Powered by Google App Engine
This is Rietveld 408576698