Zip64: also support a large header_start
This commit is contained in:
parent
87dbf02e77
commit
c286a8ba16
1 changed files with 4 additions and 1 deletions
|
@ -418,8 +418,11 @@ fn parse_extra_field(file: &mut ZipFileData, data: &[u8]) -> ZipResult<()>
|
||||||
file.compressed_size = reader.read_u64::<LittleEndian>()?;
|
file.compressed_size = reader.read_u64::<LittleEndian>()?;
|
||||||
len_left -= 8;
|
len_left -= 8;
|
||||||
}
|
}
|
||||||
|
if file.header_start == 0xFFFFFFFF {
|
||||||
|
file.header_start = reader.read_u64::<LittleEndian>()?;
|
||||||
|
len_left -= 8;
|
||||||
|
}
|
||||||
// Unparsed fields:
|
// Unparsed fields:
|
||||||
// u64: relative header offset
|
|
||||||
// u32: disk start number
|
// u32: disk start number
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
|
|
Loading…
Add table
Reference in a new issue