Larger files must not be compressed.
-
Android before 2.3 had a limit for compressed asset. If you had asset larger than something (the article says 1M, my testing shows 4M, perhaps it differs between versions) you could extract it if it was stored, but not if it was deflated1. Smaller files would work deflated fine and the tool by default deflates everything (even if it's larger than the limit)....
-
To this day my mind interprets "deflated" as meaning "decompressed".
-
1When zip came around, they couldn't say the file was compressed, because it was not compressed. So they called it deflated. It is deflated, not inflated, because you squeeze the air out to deflate something and blow it in to inflate it again. You get to love these histerical reasons.
-
To this day my mind interprets "deflated" as meaning "decompressed".
Think of it the other way. Inflation/deflation, as in economics.
-
they couldn't say the file was compressed, because it was not compressed. So they called it deflated.
Simple RLE is compression. It's not very good on its own, but why on earth would it be incorrect to call that "compression"?
-
why on earth would it be incorrect to call that "compression"?
It wasn't done using the tool / algorithm called Compress. Bulb linked to the relevant wiki page.
Filed Under: Pedantic dickweedery through the ages
-
-
Maybe they were worried about decompression bombs on a limited-memory device? The size restriction was probably arbitrarily chosen and hard-defined for consistency rather than having it be different on different devices.
-
Maybe they were worried about decompression bombs on a limited-memory device?
When extracting from a file that is cryptographically signed by the author and the signature verified by the system. Right.
The size restriction was probably arbitrarily chosen
Definitely
and hard-defined for consistency rather than having it be different on different devices.
It is hardcoded, but appears to have changed over time and/or variants.
-
They probably allocate a fixed size buffer to hold the re-inflation results, and rather than flush or expand that buffer they go "eh, she deserves to lose."
Filed Under: we need a new tag cloud to attack
-