Compare commits

...
Author SHA1 Message Date
Sara Golemon eedbe8ddaa Update NEWS for PHP 7.2.3 2018-02-27 16:11:12 +00:00
Sara Golemon d1834a3cb0 NEWS for 7.2.3 2018-02-27 11:10:18 -05:00
Stanislav Malyshev 7cf491b661 Fix bug #75981: prevent reading beyond buffer start 2018-02-27 11:06:34 -05:00
Sara Golemon 8354a83103 Update NEWS for 7.2.3 2018-02-14 16:59:41 +00:00
Sara Golemon 14e3a9f0ce Update NEWS for PHP 7.2.3RC1 2018-02-14 16:30:52 +00:00
CHU Zhaowei 47a3988236 Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it 2018-02-14 11:27:41 -05:00
Sara Golemon 7ae627ccea Revert "Update NEWS for 7.2.3"
This reverts commit afdd6fe61e.
This reverts commit 9a0c5b6d19.
2018-02-14 11:27:25 -05:00
Sara Golemon afdd6fe61e Update NEWS for 7.2.3 2018-02-13 19:20:16 +00:00
Sara Golemon 9a0c5b6d19 Update NEWS for PHP 7.2.3RC1 2018-02-13 18:55:31 +00:00
4 changed files with 42 additions and 6 deletions

No files matched your search

+5 -1
View File
@@ -1,6 +1,6 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 7.2.3
01 Mar 2018, PHP 7.2.3
- Core:
. Fixed bug #75864 ("stream_isatty" returns wrong value on s390x). (Sam Ding)
@@ -48,6 +48,8 @@ PHP NEWS
- Standard:
. Fixed bug #75916 (DNS_CAA record results contain garbage). (Mike,
Philip Sharp)
. Fixed bug #75981 (Prevent reading beyond buffer start in http wrapper).
(Stas)
01 Feb 2018, PHP 7.2.2
@@ -273,6 +275,8 @@ PHP NEWS
DateTimeInterface interface). (Majkl578)
. Fixed bug #75149 (redefinition of typedefs ttinfo and t1info). (Remi)
. Fixed bug #75222 (DateInterval microseconds property always 0). (jhdxr)
. Fixed bug #68406 (calling var_dump on a DateTimeZone object modifies it).
(jhdxr)
- Dba:
. Fixed bug #72885 (flatfile: dba_fetch() fails to read replaced entry).
+3 -3
View File
@@ -2422,9 +2422,9 @@ static HashTable *date_object_get_debug_info_timezone(zval *object, int *is_temp
zend_string *tmpstr = zend_string_alloc(sizeof("UTC+05:00")-1, 0);
ZSTR_LEN(tmpstr) = snprintf(ZSTR_VAL(tmpstr), sizeof("+05:00"), "%c%02d:%02d",
tzobj->tzi.utc_offset > 0 ? '-' : '+',
abs(tzobj->tzi.utc_offset / 60),
abs((tzobj->tzi.utc_offset % 60)));
tzobj->tzi.utc_offset < 0 ? '-' : '+',
abs((int)(tzobj->tzi.utc_offset / 3600)),
abs(((int)(tzobj->tzi.utc_offset % 3600) / 60)));
ZVAL_NEW_STR(&zv, tmpstr);
}
+2 -2
View File
@@ -718,9 +718,9 @@ finish:
tmp_line, response_code);
}
}
if (tmp_line[tmp_line_len - 1] == '\n') {
if (tmp_line_len >= 1 && tmp_line[tmp_line_len - 1] == '\n') {
--tmp_line_len;
if (tmp_line[tmp_line_len - 1] == '\r') {
if (tmp_line_len >= 1 &&tmp_line[tmp_line_len - 1] == '\r') {
--tmp_line_len;
}
}
+32
View File
@@ -0,0 +1,32 @@
--TEST--
Bug #75981 (stack-buffer-overflow while parsing HTTP response)
--INI--
allow_url_fopen=1
--SKIPIF--
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?>
--FILE--
<?php
require 'server.inc';
$options = [
'http' => [
'protocol_version' => '1.1',
'header' => 'Connection: Close'
],
];
$ctx = stream_context_create($options);
$responses = [
"data://text/plain,000000000100\xA\xA"
];
$pid = http_server('tcp://127.0.0.1:12342', $responses);
echo @file_get_contents('http://127.0.0.1:12342/', false, $ctx);
http_server_kill($pid);
?>
DONE
--EXPECT--
DONE