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

Issue 2971313002: Add a check in the BlockBuffer of AEC2 to guard for buffer overflows. (Closed)

Created:
3 years, 5 months ago by saza WebRTC
Modified:
3 years, 5 months ago
Reviewers:
*jks, peah-webrtc
CC:
webrtc-reviews_webrtc.org, AleBzk, kwiberg-webrtc, Andrew MacDonald, aleloi, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add a check in the BlockBuffer of AEC2 to guard for buffer overflows. Ensure that the ring buffer does not return a pointer into the buffer if no data is available to read. The ring buffer fix is not directly applicable to issue webrtc:7845, but may cause related memory errors. BUG=webrtc:7845 Review-Url: https://codereview.webrtc.org/2971313002 Cr-Commit-Position: refs/heads/master@{#18940} Committed: https://chromium.googlesource.com/external/webrtc/+/5de068082bcb95c45efd476183a3773a939291b7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move declaration of variable to point of first use. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -12 lines) Patch
M webrtc/common_audio/ring_buffer.h View 1 chunk +7 lines, -6 lines 0 comments Download
M webrtc/common_audio/ring_buffer.c View 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core.cc View 1 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
saza WebRTC
ptal kwiberg@, ptal. You are listed as owner of webrtc/common_audio/.
3 years, 5 months ago (2017-07-07 14:19:39 UTC) #6
peah-webrtc
On 2017/07/07 14:19:39, Sam Zackrisson WebRTC wrote: > ptal > > kwiberg@, ptal. You are ...
3 years, 5 months ago (2017-07-07 14:28:24 UTC) #7
peah-webrtc
https://codereview.webrtc.org/2971313002/diff/40001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/2971313002/diff/40001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode205 webrtc/modules/audio_processing/aec/aec_core.cc:205: size_t read_elements; I think you should move the declaration ...
3 years, 5 months ago (2017-07-07 14:28:56 UTC) #8
saza WebRTC
https://codereview.webrtc.org/2971313002/diff/40001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/2971313002/diff/40001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode205 webrtc/modules/audio_processing/aec/aec_core.cc:205: size_t read_elements; On 2017/07/07 14:28:56, peah-webrtc wrote: > I ...
3 years, 5 months ago (2017-07-10 06:53:16 UTC) #13
saza WebRTC
PTAL
3 years, 5 months ago (2017-07-10 07:03:45 UTC) #15
saza WebRTC
On 2017/07/07 14:19:39, Sam Zackrisson WebRTC wrote: > ptal > > kwiberg@, ptal. You are ...
3 years, 5 months ago (2017-07-10 07:05:09 UTC) #16
jks
lgtm
3 years, 5 months ago (2017-07-10 07:29:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2971313002/60001
3 years, 5 months ago (2017-07-10 07:30:56 UTC) #20
commit-bot: I haz the power
3 years, 5 months ago (2017-07-10 08:01:18 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/5de068082bcb95c45efd47618...

Powered by Google App Engine
This is Rietveld 408576698