This commit is contained in:
Chris Hennick 2023-05-13 14:10:34 -07:00
parent e86efb24b0
commit 15c7958df2
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -148,8 +148,9 @@ impl arbitrary::Arbitrary for FileOptions {
permissions: Option::<u32>::arbitrary(&mut u)?,
large_file: bool::arbitrary(&mut u)?,
encrypt_with: Option::<ZipCryptoKeys>::arbitrary(&mut u)?,
extra_data: Vec::with_capacity(u16::MAX as usize)?,
central_extra_data: Vec::with_capacity(u16::MAX as usize)?,
extra_data: Vec::with_capacity(u16::MAX as usize),
central_extra_data: Vec::with_capacity(u16::MAX as usize),
alignment: u8::arbitrary(&mut u)? as u16 + 1,
};
#[derive(arbitrary::Arbitrary)]
struct ExtraDataField {