r/tinycode • • Dec 15 '13

gzip decoder in 25 lines of C

https://github.com/choobin/obfuslate/blob/master/obfuslate.c
24 Upvotes

8 comments sorted by

View all comments

8

u/zifyoip Dec 15 '13

What is this number 37268 that appears in several places? Is that supposed to be 32768?

3

u/0b011 Dec 15 '13

Well that is embarrassing. I have been staring at the code for so long that I missed one of the most important aspects of deflate -- its window size. Kudos to you sir. I hang my head in shame and quickly run to a terminal to fix it. Gailly and Adler would have my head!