Add cargo-fuzz support

This has some captured starting points for TLS messages and
some traffic transcripts.
This commit is contained in:
Joseph Birr-Pixton 2017-05-09 00:12:42 +01:00
parent 3832816525
commit ffba1587fa
515 changed files with 288 additions and 0 deletions

3
fuzz/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
target
artifacts

46
fuzz/Cargo.toml Normal file
View File

@ -0,0 +1,46 @@
[package]
name = "rustls-fuzz"
version = "0.0.1"
authors = ["Automatically generated"]
publish = false
[package.metadata]
cargo-fuzz = true
[dependencies.rustls]
path = ".."
[dependencies.libfuzzer-sys]
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[[bin]]
name = "message"
path = "fuzzers/message.rs"
[[bin]]
name = "deframer"
path = "fuzzers/deframer.rs"
[[bin]]
name = "fragment"
path = "fuzzers/fragment.rs"
[[bin]]
name = "hsjoiner"
path = "fuzzers/hsjoiner.rs"
[[bin]]
name = "persist"
path = "fuzzers/persist.rs"
[[bin]]
name = "client"
path = "fuzzers/client.rs"
[[bin]]
name = "server"
path = "fuzzers/server.rs"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,34 @@
YHTTP/1.1 200 OK
Date: Mon, 08 May 2017 22:57:43 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Set-Cookie: __cfduid=d1755eb7822a3999117381353fbdf59c41494284263; expires=Tue, 08-May-18 22:57:43 GMT; path=/; domain=.jbp.io; HttpOnly
Last-Modified: Mon, 03 Apr 2017 20:07:46 GMT
Access-Control-Allow-Origin: *
Expires: Mon, 08 May 2017 23:07:43 GMT
Cache-Control: max-age=600
X-GitHub-Request-Id: 8857:5FC2:18DD116:208AB68:5910F7E7
Strict-Transport-Security: max-age=2592000
X-Content-Type-Options: nosniff
Server: cloudflare-nginx
CF-RAY: 35c00506a9303536-LHR
be2
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="google-site-verification" content="8_3Lj_0Yt688wzUrjZYeLzrNX5RuAaFgyJuma8yTv5k" />
<title>jbp.io :: </title>
<meta name="author" content="Joseph Birr-Pixton" />
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="/atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS feed" href="/rss.xml" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Fancy font -->
<link rel="stylesheet" href="/assets/themes/jbp/css/lily-script.css" type="text/css" />
<!-- Syntax highlighti

View File

@ -0,0 +1,60 @@

Çs, answers, and votes this week" data-value="week" data-shortcut="W">
week</a>
<a href="?tab=month" data-nav-xhref="" title="Questions with the most views, answers, and votes this month" data-value="month" data-shortcut="M">
month</a>
</div>
</div>
<div id="qlist-wrapper">
<div id="question-mini-list">
<div class="question-summary narrow"
id="question-summary-43857891">
<div onclick="window.location.href='/questions/43857891/how-do-i-order-an-array-in-ruby-when-ordering-has-four-different-conditions'" class="cp">
<div class="votes">
<div class="mini-counts"><span title="1 vote">1</span></div>
<div>vote</div>
</div>
<div class="status answered">
<div class="mini-counts"><span title="2 answers">2</span></div>
<div>answers</div>
</div>
<div class="views">
<div class="mini-counts"><span title="25 views">25</span></div>
<div>views</div>
</div>
</div>
<div class="summary">
<h3><a href="/questions/43857891/how-do-i-order-an-array-in-ruby-when-ordering-has-four-different-conditions" class="question-hyperlink">How do I order an array in ruby when ordering has four different conditions?</a></h3>
<div class="tags t-ruby">
<a href="/questions/tagged/ruby" class="post-tag" title="show questions tagged &#39;ruby&#39;" rel="tag">ruby</a>
</div>
<div class="started">
<a href="/questions/43857891/how-do-i-order-an-array-in-ruby-when-ordering-has-four-different-conditions/?lastactivity" class="started-link">modified <span title="2017-05-08 22:56:47Z" class="relativetime">45 secs ago</span></a>
<a href="/users/256970/cary-swoveland">Cary Swoveland</a> <span class="reputation-score" title="reputation score 50,289" dir="ltr">50.3k</span>
</div>
</div>
</div>
<div class="question-summary narrow"
id="question-summary-43858476">
<div onclick="window.location.href='/questions/43858476/how-to-create-group-number-from-string'" class="cp">
<div class="votes">
<div class="mini-counts"><span title="0 votes">0</span></div>
<div>votes</div>
</div>
<div class="status unanswered">
<div class="mini-counts"><span title="0 answers">0</span></div>
<div>answers</div>
</div>
<div class="views">
<div class="mini-counts"><span title="2 views">2</span></div>
<div>views</div>
</div>
</div>
<div class="summary">
<h3><a href="/questions/43858476/how-to-create-group-number-f

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More