From 1e2c5013770f0a537b51e37b81cd7ebbf6421e1c Mon Sep 17 00:00:00 2001 From: Wilfred Mallawa Date: Wed, 27 Nov 2024 16:13:55 +1000 Subject: [PATCH] fuzzing: connect spdm storage tests Signed-off-by: Wilfred Mallawa --- unit_test/fuzzing/fuzzing_AFL.sh | 2 ++ unit_test/fuzzing/fuzzing_AFLTurbo.sh | 2 ++ unit_test/fuzzing/fuzzing_AFLplusplus.sh | 2 ++ unit_test/fuzzing/fuzzing_LibFuzzer.sh | 2 ++ unit_test/fuzzing/oss_fuzz.sh | 2 ++ unit_test/fuzzing/run_initial_seed.sh | 2 ++ .../spdm_transport_storage_decode_message.raw | 1 + .../spdm_transport_storage_encode_message.raw | 1 + 8 files changed, 14 insertions(+) create mode 100644 unit_test/fuzzing/seeds/test_spdm_transport_storage_decode_message/spdm_transport_storage_decode_message.raw create mode 100644 unit_test/fuzzing/seeds/test_spdm_transport_storage_encode_message/spdm_transport_storage_encode_message.raw diff --git a/unit_test/fuzzing/fuzzing_AFL.sh b/unit_test/fuzzing/fuzzing_AFL.sh index 5e08fa75926..f044033d5b7 100755 --- a/unit_test/fuzzing/fuzzing_AFL.sh +++ b/unit_test/fuzzing/fuzzing_AFL.sh @@ -105,6 +105,8 @@ test_spdm_transport_mctp_encode_message test_spdm_transport_mctp_decode_message test_spdm_transport_pci_doe_encode_message test_spdm_transport_pci_doe_decode_message +test_spdm_transport_storage_encode_message +test_spdm_transport_storage_decode_message test_spdm_decode_secured_message test_spdm_encode_secured_message test_spdm_requester_encap_digests diff --git a/unit_test/fuzzing/fuzzing_AFLTurbo.sh b/unit_test/fuzzing/fuzzing_AFLTurbo.sh index 55540a45c23..1c202f71184 100755 --- a/unit_test/fuzzing/fuzzing_AFLTurbo.sh +++ b/unit_test/fuzzing/fuzzing_AFLTurbo.sh @@ -106,6 +106,8 @@ test_spdm_transport_mctp_encode_message test_spdm_transport_mctp_decode_message test_spdm_transport_pci_doe_encode_message test_spdm_transport_pci_doe_decode_message +test_spdm_transport_storage_encode_message +test_spdm_transport_storage_decode_message test_spdm_decode_secured_message test_spdm_encode_secured_message test_spdm_requester_encap_digests diff --git a/unit_test/fuzzing/fuzzing_AFLplusplus.sh b/unit_test/fuzzing/fuzzing_AFLplusplus.sh index 6d60449bfcc..85872a0afaa 100644 --- a/unit_test/fuzzing/fuzzing_AFLplusplus.sh +++ b/unit_test/fuzzing/fuzzing_AFLplusplus.sh @@ -114,6 +114,8 @@ test_spdm_transport_mctp_encode_message test_spdm_transport_mctp_decode_message test_spdm_transport_pci_doe_encode_message test_spdm_transport_pci_doe_decode_message +test_spdm_transport_storage_encode_message +test_spdm_transport_storage_decode_message test_spdm_decode_secured_message test_spdm_encode_secured_message test_spdm_requester_encap_digests diff --git a/unit_test/fuzzing/fuzzing_LibFuzzer.sh b/unit_test/fuzzing/fuzzing_LibFuzzer.sh index 56c19d4f75f..fbc94773ce4 100755 --- a/unit_test/fuzzing/fuzzing_LibFuzzer.sh +++ b/unit_test/fuzzing/fuzzing_LibFuzzer.sh @@ -76,6 +76,8 @@ test_spdm_transport_mctp_encode_message test_spdm_transport_mctp_decode_message test_spdm_transport_pci_doe_encode_message test_spdm_transport_pci_doe_decode_message +test_spdm_transport_storage_encode_message +test_spdm_transport_storage_decode_message test_spdm_decode_secured_message test_spdm_encode_secured_message test_spdm_requester_encap_digests diff --git a/unit_test/fuzzing/oss_fuzz.sh b/unit_test/fuzzing/oss_fuzz.sh index 70068bf30df..44da4396751 100755 --- a/unit_test/fuzzing/oss_fuzz.sh +++ b/unit_test/fuzzing/oss_fuzz.sh @@ -72,6 +72,8 @@ test_spdm_transport_mctp_encode_message test_spdm_transport_mctp_decode_message test_spdm_transport_pci_doe_encode_message test_spdm_transport_pci_doe_decode_message +test_spdm_transport_storage_encode_message +test_spdm_transport_storage_decode_message test_spdm_decode_secured_message test_spdm_encode_secured_message test_spdm_requester_encap_digests diff --git a/unit_test/fuzzing/run_initial_seed.sh b/unit_test/fuzzing/run_initial_seed.sh index e3081835b1e..ba9ce28ee35 100755 --- a/unit_test/fuzzing/run_initial_seed.sh +++ b/unit_test/fuzzing/run_initial_seed.sh @@ -7,6 +7,8 @@ test_spdm_transport_mctp_encode_message test_spdm_transport_mctp_decode_message test_spdm_transport_pci_doe_encode_message test_spdm_transport_pci_doe_decode_message +test_spdm_transport_storage_encode_message +test_spdm_transport_storage_decode_message test_spdm_decode_secured_message test_spdm_encode_secured_message test_spdm_requester_encap_digests diff --git a/unit_test/fuzzing/seeds/test_spdm_transport_storage_decode_message/spdm_transport_storage_decode_message.raw b/unit_test/fuzzing/seeds/test_spdm_transport_storage_decode_message/spdm_transport_storage_decode_message.raw new file mode 100644 index 00000000000..c9b94c20b1a --- /dev/null +++ b/unit_test/fuzzing/seeds/test_spdm_transport_storage_decode_message/spdm_transport_storage_decode_message.raw @@ -0,0 +1 @@ +3.D#ɝQm,ET \ No newline at end of file diff --git a/unit_test/fuzzing/seeds/test_spdm_transport_storage_encode_message/spdm_transport_storage_encode_message.raw b/unit_test/fuzzing/seeds/test_spdm_transport_storage_encode_message/spdm_transport_storage_encode_message.raw new file mode 100644 index 00000000000..b48ba620ea9 --- /dev/null +++ b/unit_test/fuzzing/seeds/test_spdm_transport_storage_encode_message/spdm_transport_storage_encode_message.raw @@ -0,0 +1 @@ +`Pז(=6I)vwײ) \ No newline at end of file