iliaal/php-fastlz — pull request #1 by jordiclariana (2012-02-27 20:43:18+00:00)
Title: Add null character to size_header

Hi Ilia,

I have added a null character at the end of the size_header because I think it can help to prevent atempts to decompress malformed data. I have seen that if you don't have this control (which actually is very simple) you can, for instance, do something like:
fastlz_decompress('00000000');
Which will try to reserve 0x30303030 bytes (808464432 bytes!).
With this simple change this will not happen (at least not so easily).

Please, pull the changes if you think is ok.

Thanks.
Jordi.