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

Issue 1338993003: Added boundary check for array access as a short-term way of fixing the bug of out-of-bounds reads … (Closed)

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

Description

Added boundary check for array access as a short-term way of fixing the bug of out-of-bounds reads into the array BUG=chromium:529527, chromium:529552 Committed: https://crrev.com/fc9dd1710d1e9f52846931cabed97134393d0b82 Cr-Commit-Position: refs/heads/master@{#9930}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Moved boundary check and removed the extra spaces #

Total comments: 2

Patch Set 3 : Removed redundant parenthesis #

Patch Set 4 : Moved the if-statement to a separate line in response to the consensus of the reviewers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M webrtc/modules/audio_processing/aec/aec_core.c View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (2 generated)
peah-webrtc
This is a bug fix for ensuring that the out-of-bounds array reads reported in a ...
5 years, 3 months ago (2015-09-14 07:09:46 UTC) #2
hlundin-webrtc
LG. But please, see comments. https://codereview.webrtc.org/1338993003/diff/1/webrtc/modules/audio_processing/aec/aec_core.c File webrtc/modules/audio_processing/aec/aec_core.c (right): https://codereview.webrtc.org/1338993003/diff/1/webrtc/modules/audio_processing/aec/aec_core.c#newcode823 webrtc/modules/audio_processing/aec/aec_core.c:823: const int histogram_length = ...
5 years, 3 months ago (2015-09-14 07:17:43 UTC) #3
peah-webrtc
https://codereview.webrtc.org/1338993003/diff/1/webrtc/modules/audio_processing/aec/aec_core.c File webrtc/modules/audio_processing/aec/aec_core.c (right): https://codereview.webrtc.org/1338993003/diff/1/webrtc/modules/audio_processing/aec/aec_core.c#newcode823 webrtc/modules/audio_processing/aec/aec_core.c:823: const int histogram_length = sizeof( self->delay_histogram ) / On ...
5 years, 3 months ago (2015-09-14 07:27:20 UTC) #4
hlundin-webrtc
LGTM modulo one more nit. https://codereview.webrtc.org/1338993003/diff/20001/webrtc/modules/audio_processing/aec/aec_core.c File webrtc/modules/audio_processing/aec/aec_core.c (right): https://codereview.webrtc.org/1338993003/diff/20001/webrtc/modules/audio_processing/aec/aec_core.c#newcode826 webrtc/modules/audio_processing/aec/aec_core.c:826: ((i < lookahead + ...
5 years, 3 months ago (2015-09-14 07:34:49 UTC) #5
peah-webrtc
5 years, 3 months ago (2015-09-14 07:45:31 UTC) #6
peah-webrtc
https://codereview.webrtc.org/1338993003/diff/20001/webrtc/modules/audio_processing/aec/aec_core.c File webrtc/modules/audio_processing/aec/aec_core.c (right): https://codereview.webrtc.org/1338993003/diff/20001/webrtc/modules/audio_processing/aec/aec_core.c#newcode826 webrtc/modules/audio_processing/aec/aec_core.c:826: ((i < lookahead + self->num_partitions) && (i < histogram_length)); ...
5 years, 3 months ago (2015-09-14 07:56:08 UTC) #7
peah-webrtc
Does this look ok? I moved back to using a separate if-statement for the boundary ...
5 years, 3 months ago (2015-09-14 12:12:55 UTC) #8
hlundin-webrtc
lgtm
5 years, 3 months ago (2015-09-14 12:27:21 UTC) #9
the sun
lgtm
5 years, 3 months ago (2015-09-14 13:32:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338993003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338993003/60001
5 years, 3 months ago (2015-09-14 13:41:20 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-14 13:54:03 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-14 13:54:09 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fc9dd1710d1e9f52846931cabed97134393d0b82
Cr-Commit-Position: refs/heads/master@{#9930}

Powered by Google App Engine
This is Rietveld 408576698