File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? 2018, PHP 5.6.39
4
4
5
+ - Core:
6
+ . Fixed bug #77231 (Segfault when using convert.quoted-printable-encode
7
+ filter). (Stas)
8
+
5
9
- IMAP:
6
10
. Fixed bug #77020 (null pointer dereference in imap_mail). (cmb)
7
11
. Fixed bug #77153 (imap_open allows to run arbitrary shell commands via
Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
928
928
line_ccnt -- ;
929
929
CONSUME_CHAR (ps , icnt , lb_ptr , lb_cnt );
930
930
} else {
931
- if (line_ccnt < 4 ) {
931
+ if (line_ccnt < 4 && inst -> lbchars != NULL ) {
932
932
if (ocnt < inst -> lbchars_len + 1 ) {
933
933
err = PHP_CONV_ERR_TOO_BIG ;
934
934
break ;
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #77231 (Segfault when using convert.quoted-printable-encode filter)
3
+ --FILE--
4
+ <?php
5
+ var_dump (file (urldecode ('php://filter/convert.quoted-printable-encode/resource=data://,%bfAAAAAAAAFAAAAAAAAAAAAAA%ff%ff%ff%ff%ff%ff%ff%ffAAAAAAAAAAAAAAAAAAAAAAAA ' )));
6
+ ?>
7
+ --EXPECT--
8
+ array(1) {
9
+ [0]=>
10
+ string(74) "=BFAAAAAAAAFAAAAAAAAAAAAAA=FF=FF=FF=FF=FF=FF=FF=FFAAAAAAAAAAAAAAAAAAAAAAAA"
11
+ }
You can’t perform that action at this time.
0 commit comments