| ▲ | hinkley 3 days ago |
| Maybe an argument to use zlib consistently. |
|
| ▲ | aaviator42 3 days ago | parent | next [-] |
| An argument for a better defined file format specification perhaps, but I don't think it's necessarily a good thing for everyone to use or have to use the same implementation. |
| |
| ▲ | socalgal2 3 days ago | parent | next [-] | | As someone who works on specs that are shared across different organizations' implementations, you can write all the specs you want but no conformance tests = no conformance. | | |
| ▲ | aaviator42 3 days ago | parent [-] | | A good point! Conformance tests seem like a great idea to me to go along with specs. |
| |
| ▲ | Muromec 3 days ago | parent | prev [-] | | If everyone has the same parser the whole classes of bugs just stop being exploitable. The classic one being one parser at the edge validates somethhing and the further down the line sees another result which it expects tp be rejected during validation. Both parsers could be buggy, but when they have different kinds of bugs, you get a zero click undetectable exploit | | |
| ▲ | woodruffw 3 days ago | parent | next [-] | | I don’t think it’s this simple: you can still produce observable differentials with a single parser by using different options within that parser in different places. The ZIP format itself affords ample opportunities for that. | | |
| ▲ | hinkley 2 days ago | parent [-] | | The settings are at encode time. For two readers the results should be unambiguous. | | |
| |
| ▲ | aaviator42 3 days ago | parent | prev [-] | | It significantly increases the attack surfaces of bugs that do exist in the parser if the same implementation is used everywhere. |
|
|
|
| ▲ | woodruffw 3 days ago | parent | prev | next [-] |
| Unless, of course, the differential occurs between versions of zlib. I think the bigger problem here is that ZIP is just not a very well defined format. |
|
| ▲ | blibble 3 days ago | parent | prev [-] |
| zlib (deflate) is just the compression type usually (not always) used in zips zip is the container around it |
| |
| ▲ | pdw 3 days ago | parent [-] | | zlib comes with a basic ZIP implementation (libminizip). |
|