MHN
Add a comment on Hacker News →
2 of 118 comments
  1. Presumably this flaw explains why zip files are so obscure and difficult to use. (Yeah it's no great but clearly it's not been an issue)

  2. Having browsed through a few different zip parsers in the course of writing my own, most handle a range of malformed/modified input, including prepended/appended garbage, filename encodings (CP437, Unicode "extra field" flags), etc. I found this set of test files useful: https://github.com/Stuk/jszip/tree/master/test/ref

    It is annoying that support for these non-standard zips has become de-facto standard (you don't want your tool to fail where others succeed)...