rubyzip/lib/zip/extra_field
Robert Haines 765cb316f1 Fix reading unknown extra fields.
When loading extra fields from both the central directory and local headers,
unknown fields were not merged correctly. They were being appended, which
means that we end up with the two versions stuck together - in some
cases duplicating the field completely.

This broke all kinds of things (like calculating the size of a local
header) in subtle ways.

This commit fixes this by implementing a new `Unknown` extra field type,
and making sure that when reading local and central extra fields they
are stored and preserved correctly. We cannot assume the unknown fields
use the same data in the local and central headers.

Fixes #505.
2021-11-19 19:53:38 +00:00
..
generic.rb Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
ntfs.rb Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
old_unix.rb Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
universal_time.rb Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
unix.rb Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
unknown.rb Fix reading unknown extra fields. 2021-11-19 19:53:38 +00:00
zip64.rb Adjust Layout/LineLength cop to 100 characters. 2021-06-25 22:31:34 +01:00
zip64_placeholder.rb Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00