mirror of
https://github.com/smoltcp-rs/smoltcp.git
synced 2026-04-17 19:46:25 +00:00
If the length field indicates a lenght bigger than the actual data that it is carying, then the packet is just wrong. Emitting such a packet is also not allowed. We now also parse the IPv6 header in an NDISC redirected packet and check that the length is correct. Signed-off-by: Thibaut Vandervelden <thvdveld@vub.be>
50 lines
855 B
TOML
50 lines
855 B
TOML
[package]
|
|
name = "smoltcp-fuzz"
|
|
version = "0.0.1"
|
|
authors = ["Automatically generated"]
|
|
publish = false
|
|
edition = "2018"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
arbitrary = { version = "1", features = ["derive"] }
|
|
getopts = "0.2"
|
|
smoltcp = { path = ".." }
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "packet_parser"
|
|
path = "fuzz_targets/packet_parser.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "tcp_headers"
|
|
path = "fuzz_targets/tcp_headers.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "dhcp_header"
|
|
path = "fuzz_targets/dhcp_header.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "ieee802154_header"
|
|
path = "fuzz_targets/ieee802154_header.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "sixlowpan_packet"
|
|
path = "fuzz_targets/sixlowpan_packet.rs"
|
|
test = false
|
|
doc = false
|