3 ms·
This is very similar to a trap I fell into with some off-brand LZ4 libraries that are laying around on Github. One, called "golz4" sounded harmless but it's act
by jeffbee 3y ago
This is very similar to a trap I fell into with some off-brand LZ4 libraries that are laying around on Github. One, called "golz4" sounded harmless but it's actually designed to be compatible with this python mistake: https://python-lz4.readthedocs.io/en/stable/lz4.block.html https://python-lz4.readthedocs.io/en/stable/lz4.block.html
Length-prefixing an otherwise standard format, by default, kept me confused for some hours.
- xyzzy_plugh 3y agoYes, I fall into this trap several times a decade as well. It's incredibly annoying. Especially when you're reading a spec and it says "LZ4" but implementations implicitly expect the length prefix. Drives me nuts!