From bc86898cdd6b0f652ed30bf22072803e6b6ed229 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sat, 13 May 2023 14:47:47 -0700 Subject: [PATCH] Strengthen fuzzing: allow very large alignments --- src/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 6e2af4c9..64a1f352 100644 --- a/src/write.rs +++ b/src/write.rs @@ -150,7 +150,7 @@ impl arbitrary::Arbitrary<'_> for FileOptions { encrypt_with: Option::::arbitrary(u)?, extra_data: Vec::with_capacity(u16::MAX as usize), central_extra_data: Vec::with_capacity(u16::MAX as usize), - alignment: u8::arbitrary(u)? as u16 + 1, + alignment: u16::arbitrary(u)?, }; u.arbitrary_loop(None, Some(16383), |u| { options