Skip to content

Commit

Permalink
Derive serialize for protobuf fuzz target input (#521)
Browse files Browse the repository at this point in the history
Signed-off-by: John Kastner <[email protected]>
  • Loading branch information
john-h-kastner-aws authored Jan 16, 2025
1 parent 403f256 commit 4f6b991
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cedar-drt/fuzz/fuzz_targets/protobuf-roundtrip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

use libfuzzer_sys::arbitrary::{self, MaxRecursionReached};
use prost::Message;
use serde::Serialize;

use crate::arbitrary::Arbitrary;
use crate::arbitrary::Unstructured;
Expand All @@ -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,
Expand Down

0 comments on commit 4f6b991

Please sign in to comment.