t3rmin4t0r/php-fastlz — Issue #2: _decompress consumes all memory
Author: NMigo
Created: 2012-02-03 12:45:45+00:00
State: open

Hi, performing a fastlz_decompresss on a non valid compressed string, the function consumes al memory:

php -a
Interactive shell
php > fastlz_decompress('£RES');

Fatal error: Allowed memory size of 1291845632 bytes exhausted (tried to allocate 3265483334 bytes) in php shell code on line 1

Call Stack:
13.5809 633472 1. {main}() php shell code:0
13.5810 633688 2. fastlz_decompress() php shell code:1

This is tested under Debian Linux 64bits, PHP CLI and the latest version from the repo. Please let us know if you need to re-test. Thanks,