Test: /ext/iconv/tests/bug76249.phpt - Version 7.4.1        

Security #76249 stream filter convert.iconv leads to infinite loop on invalid sequence
Submitted: 2018-04-22 15:18:35 Modified: 2018-04-29 20:47:46
From: p.mehrer Assigned: stas
Status: Closed Package: Streams related
PHP Version: 7.0.29 OS: ubuntu/xenial x64

There are 6 different diffs reported by users for this test.

Count Diff
3 (30%)
001+ Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf-8//IGNORE"): unknown error in %s/bug76249.php on line 8
001- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
2 (20%)
001+ Warning: stream_filter_append(): unable to create or locate filter "convert.iconv.ucs-2/utf-8//IGNORE" in %s/bug76249.php on line 6
002+ string(3) "abc"
001- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
002- string(0) ""
2 (20%)
001+
001- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
002- string(0) ""
003- DONE
1 (10%)
001+ dyld: lazy symbol binding failed: Symbol not found: _libiconv_open
002+ Referenced from: /Users/guigangwang/php-7.4.1/sapi/cli/php
003+ Expected in: /usr/lib/libiconv.2.dylib
001- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
002- string(0) ""
003- DONE
004+
005+ dyld: Symbol not found: _libiconv_open
006+ Referenced from: /Users/guigangwang/php-7.4.1/sapi/cli/php
007+ Expected in: /usr/lib/libiconv.2.dylib
008+
009+
010+ Termsig=6
1 (10%)
001+ Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf8//IGNORE"): unknown error in %s/bug76249.php on line 8
001- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
1 (10%)
001+ Termsig=0
001- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
002- string(0) ""
003- DONE