[domistream] Tests: fuzz targets assert invariants
Every target now checks properties instead of only calling the parser: parse -> encode -> parse stability (RTSP request, ENet, input), caps and TooLarge past them, chunking invariance of the framer, XML vs status parser agreement, seal/open round trips, no forged GCM tags. New targets for the parsers and state machines that had none: server_cert_der, enet_client, media_decrypt, video_depacketizer, audio_depacketizer, fec_reconstruct, pairing_session, rtsp_client (25 targets).
This commit is contained in:
+57
-1
@@ -1,4 +1,4 @@
|
||||
# Fuzz targets: one per DomiStream parser. Its own workspace, built only for fuzzing, never released.
|
||||
# Fuzz targets: one per DomiStream parser and state machine; each asserts invariants (round trips, caps). Its own workspace, built only for fuzzing, never released.
|
||||
#
|
||||
# Linux, nightly, cargo-fuzz:
|
||||
# cargo fuzz run <target> -- -max_total_time=600
|
||||
@@ -155,3 +155,59 @@ path = "fuzz_targets/audio_packet.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "server_cert_der"
|
||||
path = "fuzz_targets/server_cert_der.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "enet_client"
|
||||
path = "fuzz_targets/enet_client.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "media_decrypt"
|
||||
path = "fuzz_targets/media_decrypt.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "video_depacketizer"
|
||||
path = "fuzz_targets/video_depacketizer.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "audio_depacketizer"
|
||||
path = "fuzz_targets/audio_depacketizer.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "fec_reconstruct"
|
||||
path = "fuzz_targets/fec_reconstruct.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "pairing_session"
|
||||
path = "fuzz_targets/pairing_session.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "rtsp_client"
|
||||
path = "fuzz_targets/rtsp_client.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
Reference in New Issue
Block a user