Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
bz2 /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
1.1
KB
-rw-rw-r--
2022-10-31 11:36
002.phpt
3.23
KB
-rw-rw-r--
2022-10-31 11:36
003-mb.phpt
959
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
923
B
-rw-rw-r--
2022-10-31 11:36
003.txt.bz2
126
B
-rw-rw-r--
2022-10-31 11:36
003私はガラスを食べられます.txt.bz2
126
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
1.96
KB
-rw-rw-r--
2022-10-31 11:36
004_1.txt.bz2
125
B
-rw-rw-r--
2022-10-31 11:36
004_2.txt.bz2
123
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
1.62
KB
-rw-rw-r--
2022-10-31 11:36
72613.bz2
351
B
-rw-rw-r--
2022-10-31 11:36
bug51997.phpt
460
B
-rw-rw-r--
2022-10-31 11:36
bug71263.phpt
1.6
KB
-rw-rw-r--
2022-10-31 11:36
bug72447.phpt
497
B
-rw-rw-r--
2022-10-31 11:36
bug72613.phpt
424
B
-rw-rw-r--
2022-10-31 11:36
bug75776.phpt
636
B
-rw-rw-r--
2022-10-31 11:36
bug81092.phpt
574
B
-rw-rw-r--
2022-10-31 11:36
bz2_filter_compress.phpt
607
B
-rw-rw-r--
2022-10-31 11:36
bz2_filter_decompress.phpt
610
B
-rw-rw-r--
2022-10-31 11:36
with_files.phpt
398
B
-rw-rw-r--
2022-10-31 11:36
with_strings.phpt
437
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Bug #71263: fread() does not detects decoding errors from filter bzip2.decompress --SKIPIF-- <?php if (!extension_loaded("bz2")) print "skip bz2 extension not loaded"; ?> --FILE-- <?php // Should notices be generated? function test($case) { $plain = "The quick brown fox jumps over the lazy dog."; $fn = "bug71263.bz2"; $compressed = (string) bzcompress($plain); echo "Compressed len = ", strlen($compressed), "\n"; if ($case == 1) { // Set a random byte in the middle of the compressed data // --> php_bz2_decompress_filter() detects fatal error // --> fread() displays empty string then garbage, no errors detected: $compressed[strlen($compressed) - 15] = 'X'; } else if ($case == 2) { // Truncate the compressed data // --> php_bz2_decompress_filter() does not detect errors, // --> fread() displays the empty string: $compressed = substr($compressed, 0, strlen($compressed) - 20); } else { // Corrupted final CRC // --> php_bz2_decompress_filter() detects fatal error // --> fread() displays an empty string, then the correct plain text, no error detected: $compressed[strlen($compressed)-2] = 'X'; } file_put_contents($fn, $compressed); $r = fopen($fn, "r"); stream_filter_append($r, 'bzip2.decompress', STREAM_FILTER_READ); while (!feof($r)) { $s = fread($r, 100); echo "read: "; var_dump($s); } fclose($r); unlink($fn); } test(1); test(2); test(3); ?> --EXPECT-- Compressed len = 81 read: bool(false) Compressed len = 81 read: string(0) "" Compressed len = 81 read: bool(false)