| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README | 2016-12-05 | 1.0 kB | |
| gzzzzzz.c | 2016-12-05 | 2.6 kB | |
| Makefile | 2016-12-05 | 34 Bytes | |
| Totals: 3 Items | 3.7 kB | 0 | |
gzzzzzz -------------------------------------------------- stores a file into gzip format where the output is 6 times as large as the input. usage: gzzzzzz [--help] <input-file> <output-file> -------------------------------------------------- in RFC 1951 which specifies the deflate format is written: "the format defined here, the worst case expansion is 5 bytes per 32K-byte block, i.e., a size increase of 0.015% for large data sets." in fact this statement holds only for nice and correct implementations. You can easily write a program that uses the deflate format to increase the data many many times. As a proof of concept I have written this code snippet to increase files six times and write the output in the gzip file format which wrapps the deflate format. I think that one can misuse virtually any compression format in such a way. If some programmers think that a compressed file is not signifficantly bigger than the original file, a "file increaser" may be an issue e.g. for buffer overflows or network traffic or ...