From c79f734a11610a7539a715131acf5a95461164b7 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sat, 13 May 2023 14:11:43 -0700 Subject: [PATCH] Bug fix --- src/write.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 4ca900b8..e257858d 100644 --- a/src/write.rs +++ b/src/write.rs @@ -160,7 +160,8 @@ impl arbitrary::Arbitrary for FileOptions { } let extra_data = Vec::::arbitrary(&mut u)?; for field in extra_data { - options.add_extra_data(field.header_id, field.data.as_slice(), field.central_only)?; + options.add_extra_data(field.header_id, field.data.as_slice(), field.central_only) + .map_err(|_| arbitrary::Error::IncorrectFormat); } Ok(options) }