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

Issue 1182793002: Prevent heap overflows for incorrect FEC packet lengths. (Closed)

Created:
5 years, 6 months ago by pbos-webrtc
Modified:
4 years, 11 months ago
Reviewers:
stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Prevent heap overflows for incorrect FEC packet lengths. Bugs found by manual inspection of code, not by fuzzing or packet replays. At least one of them confirmed by local fuzzing. BUG=chromium:496094, webrtc:4771 R=stefan@webrtc.org Committed: https://crrev.com/2bad88d164754f1f0694e9fea1051e71b3cb5347 Cr-Commit-Position: refs/heads/master@{#9542}

Patch Set 1 #

Total comments: 2

Patch Set 2 : inject-garbage-lengths unittests #

Patch Set 3 : fix leak #

Patch Set 4 : rebase #

Total comments: 9

Patch Set 5 : feedback #

Patch Set 6 : rebase + cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -16 lines) Patch
M webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc View 1 2 3 4 4 chunks +41 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/forward_error_correction.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/forward_error_correction.cc View 1 2 3 4 5 6 chunks +38 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
pbos-webrtc
PTAL and tell me what tests you want for this (and if they're easy to ...
5 years, 6 months ago (2015-06-12 14:26:34 UTC) #1
stefan-webrtc
On 2015/06/12 at 14:26:34, pbos wrote: > PTAL and tell me what tests you want ...
5 years, 6 months ago (2015-06-16 09:05:25 UTC) #2
pbos-webrtc
inject-garbage-lengths unittests
5 years, 6 months ago (2015-06-22 13:43:46 UTC) #3
pbos-webrtc
PTAL, I couldn't figure out how to easily inject exact offsets, but this at least ...
5 years, 6 months ago (2015-06-22 13:45:20 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182793002/20001
5 years, 6 months ago (2015-06-22 13:45:32 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/7996)
5 years, 6 months ago (2015-06-22 14:30:50 UTC) #8
pbos-webrtc
fix leak
5 years, 6 months ago (2015-06-23 09:04:47 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182793002/40001
5 years, 6 months ago (2015-06-23 09:05:53 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-23 10:17:32 UTC) #13
stefan-webrtc
https://codereview.webrtc.org/1182793002/diff/1/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/1182793002/diff/1/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode639 webrtc/modules/rtp_rtcp/source/forward_error_correction.cc:639: // This is the first packet which we try ...
5 years, 6 months ago (2015-06-25 15:23:51 UTC) #14
pbos-webrtc
rebase
5 years, 5 months ago (2015-07-01 13:10:35 UTC) #15
pbos-webrtc
PTAL https://codereview.webrtc.org/1182793002/diff/1/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/1182793002/diff/1/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode639 webrtc/modules/rtp_rtcp/source/forward_error_correction.cc:639: // This is the first packet which we ...
5 years, 5 months ago (2015-07-01 13:11:08 UTC) #16
stefan-webrtc
https://codereview.webrtc.org/1182793002/diff/60001/webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc (right): https://codereview.webrtc.org/1182793002/diff/60001/webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc#newcode147 webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc:147: BuildAndAddRedMediaPacket(*it); This doesn't really do any recovery, right? Can ...
5 years, 5 months ago (2015-07-02 09:31:26 UTC) #17
pbos-webrtc
PTAL https://codereview.webrtc.org/1182793002/diff/60001/webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc (right): https://codereview.webrtc.org/1182793002/diff/60001/webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc#newcode147 webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc:147: BuildAndAddRedMediaPacket(*it); On 2015/07/02 09:31:25, stefan-webrtc (holmer) wrote: > ...
5 years, 5 months ago (2015-07-02 13:54:55 UTC) #18
pbos-webrtc
feedback
5 years, 5 months ago (2015-07-02 13:57:37 UTC) #19
stefan-webrtc
lgtm https://codereview.webrtc.org/1182793002/diff/60001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/1182793002/diff/60001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode652 webrtc/modules/rtp_rtcp/source/forward_error_correction.cc:652: sizeof(fec_packet->pkt->data) - kFecHeaderSize - ulp_header_size)) { On 2015/07/02 ...
5 years, 5 months ago (2015-07-06 08:52:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182793002/80001
5 years, 5 months ago (2015-07-06 08:53:03 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_gn on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn/builds/4486) win on tryserver.webrtc (JOB_FAILED, ...
5 years, 5 months ago (2015-07-06 08:55:00 UTC) #24
pbos-webrtc
rebase + cast
5 years, 5 months ago (2015-07-06 09:25:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182793002/100001
5 years, 5 months ago (2015-07-06 09:26:12 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 5 months ago (2015-07-06 10:09:13 UTC) #29
commit-bot: I haz the power
5 years, 5 months ago (2015-07-06 10:09:26 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2bad88d164754f1f0694e9fea1051e71b3cb5347
Cr-Commit-Position: refs/heads/master@{#9542}

Powered by Google App Engine
This is Rietveld 408576698