-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an integer overflow bug and a read-1-past-the-array.
- Loading branch information
Alex Huszagh
committed
Dec 16, 2018
1 parent
759a74d
commit cc87783
Showing
22 changed files
with
223 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
target | ||
corpus | ||
artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
|
||
[package] | ||
name = "lexical-core-fuzz" | ||
version = "0.0.1" | ||
authors = ["Alex Huszagh <[email protected]>"] | ||
publish = false | ||
|
||
[package.metadata] | ||
cargo-fuzz = true | ||
|
||
[dependencies.lexical-core] | ||
path = ".." | ||
|
||
[dependencies.libfuzzer-sys] | ||
git = "https://github.com/rust-fuzz/libfuzzer-sys.git" | ||
|
||
# Prevent this from interfering with workspaces | ||
[workspace] | ||
members = ["."] | ||
|
||
[[bin]] | ||
name = "atof32" | ||
path = "fuzz_targets/atof32.rs" | ||
|
||
[[bin]] | ||
name = "atof64" | ||
path = "fuzz_targets/atof64.rs" | ||
|
||
[[bin]] | ||
name = "atoi8" | ||
path = "fuzz_targets/atoi8.rs" | ||
|
||
[[bin]] | ||
name = "atoi16" | ||
path = "fuzz_targets/atoi16.rs" | ||
|
||
[[bin]] | ||
name = "atoi32" | ||
path = "fuzz_targets/atoi32.rs" | ||
|
||
[[bin]] | ||
name = "atoi64" | ||
path = "fuzz_targets/atoi64.rs" | ||
|
||
[[bin]] | ||
name = "atoi128" | ||
path = "fuzz_targets/atoi128.rs" | ||
|
||
[[bin]] | ||
name = "atoisize" | ||
path = "fuzz_targets/atoisize.rs" | ||
|
||
[[bin]] | ||
name = "atou8" | ||
path = "fuzz_targets/atou8.rs" | ||
|
||
[[bin]] | ||
name = "atou16" | ||
path = "fuzz_targets/atou16.rs" | ||
|
||
[[bin]] | ||
name = "atou32" | ||
path = "fuzz_targets/atou32.rs" | ||
|
||
[[bin]] | ||
name = "atou64" | ||
path = "fuzz_targets/atou64.rs" | ||
|
||
[[bin]] | ||
name = "atou128" | ||
path = "fuzz_targets/atou128.rs" | ||
|
||
[[bin]] | ||
name = "atousize" | ||
path = "fuzz_targets/atousize.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atof::try_atof32_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atof::try_atof64_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atoi128_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atoi16_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atoi32_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atoi64_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atoi8_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atoisize_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atou128_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atou16_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atou32_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atou64_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atou8_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![no_main] | ||
#[macro_use] extern crate libfuzzer_sys; | ||
extern crate lexical_core; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ = lexical_core::atoi::try_atousize_slice(10, data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters