correct error checking for bz2 file reading
The code reading .bz2 compressed files did not correctly check for possible read errors. In case of a corrupted file this could have led to an infinite loop. Thanks to Filippo Cavallarin from www.segment.technology for dicovering this bug.
Showing
- _test/tests/inc/io_readfile.test.php 53 additions, 0 deletions_test/tests/inc/io_readfile.test.php
- _test/tests/inc/io_readfile/corrupt.txt.bz2 1 addition, 0 deletions_test/tests/inc/io_readfile/corrupt.txt.bz2
- _test/tests/inc/io_readfile/corrupt.txt.gz 0 additions, 0 deletions_test/tests/inc/io_readfile/corrupt.txt.gz
- _test/tests/inc/io_readfile/test.txt.bz2 0 additions, 0 deletions_test/tests/inc/io_readfile/test.txt.bz2
- _test/tests/inc/io_readfile/test.txt.gz 0 additions, 0 deletions_test/tests/inc/io_readfile/test.txt.gz
- inc/io.php 11 additions, 5 deletionsinc/io.php
Loading
Please register or sign in to comment