Col-E / LL-Java-Zip

Lower level ZIP support for Java
MIT License
37 stars 8 forks source link

Add tests for local file header inside another local file header #24

Closed NeRdTheNed closed 1 year ago

NeRdTheNed commented 1 year ago

As central directory headers can point to arbitrary locations, it's possible (although probably not spec legal per section 4.3.8 of APPNOTE.txt) to embed a local file header inside of the contents of another local file header. This PR adds two new files:

Some zip parsers may not see files like these (e.g. if they only read local file headers sequentially). For example, running the zip comparison test shows that ZipInputStream does not see "Hello.class", while all other tested parsers see this file (including LL-Java-Zip).