Hacker News new | ask | show | jobs
by ztravis 3474 days ago
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)...