From 4f6b9918744a558b9189444dcc80d15681bffc61 Mon Sep 17 00:00:00 2001 From: John Kastner <130772734+john-h-kastner-aws@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:53:38 -0500 Subject: [PATCH] Derive serialize for protobuf fuzz target input (#521) Signed-off-by: John Kastner --- cedar-drt/fuzz/fuzz_targets/protobuf-roundtrip.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cedar-drt/fuzz/fuzz_targets/protobuf-roundtrip.rs b/cedar-drt/fuzz/fuzz_targets/protobuf-roundtrip.rs index cd3e65e35..6163f01bf 100644 --- a/cedar-drt/fuzz/fuzz_targets/protobuf-roundtrip.rs +++ b/cedar-drt/fuzz/fuzz_targets/protobuf-roundtrip.rs @@ -18,6 +18,7 @@ use libfuzzer_sys::arbitrary::{self, MaxRecursionReached}; use prost::Message; +use serde::Serialize; use crate::arbitrary::Arbitrary; use crate::arbitrary::Unstructured; @@ -32,8 +33,9 @@ use cedar_policy_generators::{ settings::ABACSettings, }; -#[derive(Debug)] +#[derive(Debug, Clone, Serialize)] struct FuzzTargetInput { + #[serde(skip)] request: ABACRequest, policy: ABACPolicy, entities: Entities,