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

Issue 2292083002: Add a fuzzer for WebSocketDeflateStream::ReadFrames() (Closed)

Created:
4 years, 3 months ago by Adam Rice
Modified:
4 years, 3 months ago
Reviewers:
bengr, yhirano
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a fuzzer for WebSocketDeflateStream::ReadFrames() The ReadFrames() method of WebSocketDeflateStream decompresses WebSocket frames received from the network. It thus consistitutes a potential attack surface and needs to be robust against bad input. Add a fuzzer to ensure that WebSocketDeflateStream does not misbehave if given bad input. BUG= Committed: https://crrev.com/7b870e72a79e574f8dcfbbd37858a081a9fdc2f8 Cr-Commit-Position: refs/heads/master@{#415882}

Patch Set 1 #

Patch Set 2 : Set max_len to 512 for better coverage #

Total comments: 4

Patch Set 3 : Make WebSocketFuzzedStream final #

Total comments: 2

Patch Set 4 : Add string_piece.h include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -0 lines) Patch
M net/BUILD.gn View 1 1 chunk +12 lines, -0 lines 0 comments Download
A net/websockets/websocket_deflate_stream_fuzzer.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Adam Rice
I'm not sure how useful this is really. It didn't find any bugs when I ...
4 years, 3 months ago (2016-08-30 13:16:28 UTC) #2
yhirano
https://codereview.chromium.org/2292083002/diff/20001/net/websockets/websocket_deflate_stream_fuzzer.cc File net/websockets/websocket_deflate_stream_fuzzer.cc (right): https://codereview.chromium.org/2292083002/diff/20001/net/websockets/websocket_deflate_stream_fuzzer.cc#newcode29 net/websockets/websocket_deflate_stream_fuzzer.cc:29: class WebSocketFuzzedStream : public WebSocketStream { final https://codereview.chromium.org/2292083002/diff/20001/net/websockets/websocket_deflate_stream_fuzzer.cc#newcode80 net/websockets/websocket_deflate_stream_fuzzer.cc:80: ...
4 years, 3 months ago (2016-08-31 05:30:04 UTC) #7
Adam Rice
https://codereview.chromium.org/2292083002/diff/20001/net/websockets/websocket_deflate_stream_fuzzer.cc File net/websockets/websocket_deflate_stream_fuzzer.cc (right): https://codereview.chromium.org/2292083002/diff/20001/net/websockets/websocket_deflate_stream_fuzzer.cc#newcode29 net/websockets/websocket_deflate_stream_fuzzer.cc:29: class WebSocketFuzzedStream : public WebSocketStream { On 2016/08/31 05:30:04, ...
4 years, 3 months ago (2016-08-31 06:02:59 UTC) #8
yhirano
lgtm https://codereview.chromium.org/2292083002/diff/40001/net/websockets/websocket_deflate_stream_fuzzer.cc File net/websockets/websocket_deflate_stream_fuzzer.cc (right): https://codereview.chromium.org/2292083002/diff/40001/net/websockets/websocket_deflate_stream_fuzzer.cc#newcode13 net/websockets/websocket_deflate_stream_fuzzer.cc:13: #include "base/memory/ptr_util.h" +base/strings/string_piece.h
4 years, 3 months ago (2016-08-31 06:10:00 UTC) #9
Adam Rice
https://codereview.chromium.org/2292083002/diff/40001/net/websockets/websocket_deflate_stream_fuzzer.cc File net/websockets/websocket_deflate_stream_fuzzer.cc (right): https://codereview.chromium.org/2292083002/diff/40001/net/websockets/websocket_deflate_stream_fuzzer.cc#newcode13 net/websockets/websocket_deflate_stream_fuzzer.cc:13: #include "base/memory/ptr_util.h" On 2016/08/31 06:10:00, yhirano wrote: > +base/strings/string_piece.h ...
4 years, 3 months ago (2016-08-31 06:57:20 UTC) #10
Adam Rice
+bengr for net/BUILD.gn
4 years, 3 months ago (2016-08-31 06:58:55 UTC) #12
bengr
net/BUILD.gn lgtm
4 years, 3 months ago (2016-08-31 23:40:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2292083002/60001
4 years, 3 months ago (2016-09-01 03:26:24 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-01 04:41:21 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 04:43:19 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7b870e72a79e574f8dcfbbd37858a081a9fdc2f8
Cr-Commit-Position: refs/heads/master@{#415882}

Powered by Google App Engine
This is Rietveld 408576698