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

Issue 1834303002: Rework the mime sniffer fuzzer. (Closed)

Created:
4 years, 8 months ago by mmenke
Modified:
4 years, 8 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmoroz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rework the mime sniffer fuzzer. In particular, make it fuzz the URL and content-type header, and make it check the other top level mime sniffing function. Also, rename it so it's more clearly associated with mime_sniffer.h. BUG=598397 Committed: https://crrev.com/5552a6a020ac21565f4a92a36d545e8115c56132 Cr-Commit-Position: refs/heads/master@{#383597}

Patch Set 1 #

Patch Set 2 : Update comment #

Total comments: 12

Patch Set 3 : Remove ShouldSniffMimeType #

Patch Set 4 : Response to comments #

Patch Set 5 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -29 lines) Patch
M net/BUILD.gn View 2 chunks +11 lines, -11 lines 0 comments Download
A net/base/mime_sniffer_fuzzer.cc View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
D net/base/sniff_mime_type_fuzzer.cc View 1 chunk +0 lines, -18 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
mmenke
Eric: Hrm...Didn't plan to send a bunch of reviews your way, just the way things ...
4 years, 8 months ago (2016-03-28 20:20:59 UTC) #2
mmenke
I'm not planning to do a ton of fuzzers all at once, thinking just 1-2 ...
4 years, 8 months ago (2016-03-28 20:24:18 UTC) #3
eroman
Given that I wrote the original test, sending me the reviews is totally reasonable :)
4 years, 8 months ago (2016-03-28 20:30:35 UTC) #4
mmenke
On 2016/03/28 20:30:35, eroman wrote: > Given that I wrote the original test, sending me ...
4 years, 8 months ago (2016-03-28 20:34:45 UTC) #5
eroman
> Ahh, didn't realize that. Had just assumed it was written by the cluster > ...
4 years, 8 months ago (2016-03-28 21:00:26 UTC) #7
mmenke
On 2016/03/28 21:00:26, eroman wrote: > > Ahh, didn't realize that. Had just assumed it ...
4 years, 8 months ago (2016-03-28 21:22:04 UTC) #8
mmenke
https://codereview.chromium.org/1834303002/diff/20001/net/base/mime_sniffer_fuzzer.cc File net/base/mime_sniffer_fuzzer.cc (right): https://codereview.chromium.org/1834303002/diff/20001/net/base/mime_sniffer_fuzzer.cc#newcode47 net/base/mime_sniffer_fuzzer.cc:47: net::ShouldSniffMimeType(url, mime_type_hint); On 2016/03/28 21:22:04, mmenke wrote: > On ...
4 years, 8 months ago (2016-03-28 21:57:53 UTC) #9
eroman
> It was actually the file name mismatch. I named the file sniff_mime_type_fuzzer.cc because it ...
4 years, 8 months ago (2016-03-28 22:28:09 UTC) #10
mmenke
On 2016/03/28 22:28:09, eroman wrote: > > It was actually the file name mismatch. > ...
4 years, 8 months ago (2016-03-28 22:33:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834303002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834303002/80001
4 years, 8 months ago (2016-03-28 22:35:32 UTC) #13
eroman
I agree on both counts. This is kind of a crazy idea, but we could ...
4 years, 8 months ago (2016-03-28 22:40:03 UTC) #14
mmenke
On 2016/03/28 22:28:09, eroman wrote: > > It was actually the file name mismatch. > ...
4 years, 8 months ago (2016-03-28 22:47:41 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-28 23:12:08 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 23:13:51 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5552a6a020ac21565f4a92a36d545e8115c56132
Cr-Commit-Position: refs/heads/master@{#383597}

Powered by Google App Engine
This is Rietveld 408576698