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

Issue 2044523002: Add fuzzers for SDP and STUN parsing. (Closed)

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

Description

Add fuzzers for SDP and STUN parsing. The STUN fuzzer is split into two parts: validation and parsing. The latter should be able to handle invalid packets instead of assuming the validation deals with them, since an adversary could set a valid HMAC on an invalid packet. NOTRY=true Committed: https://crrev.com/7b496e026b0de7e42945cefc2c0165c8bd807af8 Cr-Commit-Position: refs/heads/master@{#13050}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updates as per code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -17 lines) Patch
M webrtc/test/fuzzers/BUILD.gn View 1 chunk +27 lines, -0 lines 0 comments Download
A + webrtc/test/fuzzers/sdp_parser_fuzzer.cc View 1 1 chunk +9 lines, -13 lines 0 comments Download
A webrtc/test/fuzzers/stun_parser_fuzzer.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download
A + webrtc/test/fuzzers/stun_validator_fuzzer.cc View 1 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
katrielc
4 years, 6 months ago (2016-06-06 16:12:39 UTC) #2
katrielc
On 2016/06/06 16:12:39, katrielc wrote: FWIW I have corpora for both of these, but haven't ...
4 years, 6 months ago (2016-06-06 16:14:50 UTC) #3
pbos-webrtc
https://codereview.webrtc.org/2044523002/diff/1/webrtc/test/fuzzers/sdp_parser_fuzzer.cc File webrtc/test/fuzzers/sdp_parser_fuzzer.cc (right): https://codereview.webrtc.org/2044523002/diff/1/webrtc/test/fuzzers/sdp_parser_fuzzer.cc#newcode21 webrtc/test/fuzzers/sdp_parser_fuzzer.cc:21: CreateSessionDescription("offer", message, &error); Does this leak a description? unique_ptr? ...
4 years, 6 months ago (2016-06-06 16:20:43 UTC) #4
katrielc
https://codereview.webrtc.org/2044523002/diff/1/webrtc/test/fuzzers/sdp_parser_fuzzer.cc File webrtc/test/fuzzers/sdp_parser_fuzzer.cc (right): https://codereview.webrtc.org/2044523002/diff/1/webrtc/test/fuzzers/sdp_parser_fuzzer.cc#newcode21 webrtc/test/fuzzers/sdp_parser_fuzzer.cc:21: CreateSessionDescription("offer", message, &error); On 2016/06/06 16:20:42, pbos-webrtc wrote: > ...
4 years, 6 months ago (2016-06-06 16:32:21 UTC) #5
pbos-webrtc
lgtm
4 years, 6 months ago (2016-06-06 16:37:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2044523002/20001
4 years, 6 months ago (2016-06-06 16:43:49 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-06 16:45:33 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7b496e026b0de7e42945cefc2c0165c8bd807af8 Cr-Commit-Position: refs/heads/master@{#13050}
4 years, 6 months ago (2016-06-06 16:45:38 UTC) #15
aizatsky
I think this change breaks libfuzzer build: ERROR at //third_party/webrtc/test/fuzzers/BUILD.gn:92:5: Can't load input file. "//webrtc/api:libjingle_peerconnection", ...
4 years, 6 months ago (2016-06-09 21:10:20 UTC) #17
pbos-webrtc
On 2016/06/09 21:10:20, aizatsky wrote: > I think this change breaks libfuzzer build: > > ...
4 years, 6 months ago (2016-06-09 21:12:12 UTC) #18
pbos-webrtc
4 years, 6 months ago (2016-06-09 21:17:04 UTC) #19
Message was sent while issue was closed.
On 2016/06/09 21:12:12, pbos-webrtc wrote:
> On 2016/06/09 21:10:20, aizatsky wrote:
> > I think this change breaks libfuzzer build:
> > 
> > ERROR at //third_party/webrtc/test/fuzzers/BUILD.gn:92:5: Can't load input
> file.
> >     "//webrtc/api:libjingle_peerconnection",
> >     ^--------------------------------------
> > Unable to load:
> >   /usr/local/google/home/aizatsky/src/chrome/src/webrtc/api/BUILD.gn
> > I also checked in the secondary tree for:
> >  
> >
>
/usr/local/google/home/aizatsky/src/chrome/src/build/secondary/webrtc/api/BUILD.gn
> 
> Yes, this should have been ../../api and ../../p2p respectively. Will do a CL
> and TBR it.

CL here: https://codereview.webrtc.org/2053093002/

Powered by Google App Engine
This is Rietveld 408576698