Skip to content

Commit 0ab2468

Browse files
committed
Add simple fuzzing
1 parent 3ee6d1e commit 0ab2468

File tree

5 files changed

+464
-2
lines changed

5 files changed

+464
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
target
2-
Cargo.lock
2+
./Cargo.lock

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ script: |
1111
([ $TRAVIS_RUST_VERSION != nightly ] || cargo check --verbose --no-default-features) &&
1212
([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features union) &&
1313
([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --all-features) &&
14-
([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench)
14+
([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench) &&
15+
(
16+
cd fuzz
17+
./travis-fuzz.sh
18+
)

fuzz/Cargo.lock

Lines changed: 192 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fuzz/Cargo.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[package]
2+
name = "smallvec-fuzz"
3+
version = "0.1.0"
4+
authors = ["Dawid Ciężarkiewicz <dpc@dpc.pw>"]
5+
edition = "2018"
6+
publish = false
7+
8+
[package.metadata]
9+
cargo-fuzz = true
10+
11+
[features]
12+
afl_fuzz = ["afl"]
13+
honggfuzz_fuzz = ["honggfuzz"]
14+
15+
16+
[dependencies]
17+
honggfuzz = { version = "0.5", optional = true }
18+
afl = { version = "0.4", optional = true }
19+
smallvec = { path = ".." }
20+
21+
[workspace]
22+
members = ["."]
23+
24+
[[bin]]
25+
name = "smallvec_ops"
26+
path = "fuzz_targets/smallvec_ops.rs"

0 commit comments

Comments
 (0)