Compare commits

...
13 Commits
Author SHA1 Message Date
Anatol Belski 94933677a3 fix indent 2016-12-06 16:27:12 +01:00
Anatol Belski 6544955bbc update NEWS 2016-12-06 16:26:38 +01:00
Anatol Belski 7f22627870 fix leak, take on 7.x
(cherry picked from commit 9b1430140a)
2016-12-06 16:24:12 +01:00
Stanislav Malyshev 7eb7831295 Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  This still leaks memory, I don't have enough knowledge in WDDX code to fix them :(

(cherry picked from commit 183b4d78aa)
2016-12-06 16:23:43 +01:00
Stanislav Malyshev a5c493c339 Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  Fix bug #73631 - Invalid read when wddx decodes empty boolean element

(cherry picked from commit 6292fe84d3)
2016-12-06 16:22:52 +01:00
Anatol Belski 254d5017c6 set versions 2016-12-06 09:54:00 +01:00
Anatol Belski 90d0bda0be update NEWS 2016-12-06 09:44:32 +01:00
Stanislav Malyshev 52f1cabf34 Fix int/size_t confusion in isValidPharFilename (bug #73580)
(cherry picked from commit bcc913fa8b)
2016-12-06 09:42:04 +01:00
Anatol Belski 77e313848a update NEWS 2016-12-06 09:41:05 +01:00
Stanislav Malyshev a92718868d Fix bug #73645 - int/size_t confusion
(cherry picked from commit 1d59ed7524)
2016-12-06 09:34:40 +01:00
Anatol Belski a64fff6d4e fix version in NEWS 2016-11-22 13:26:10 +01:00
Anatol Belski 3ded4b718d update libs_versions.txt
(cherry picked from commit 13c45021dc)
2016-11-22 13:05:41 +01:00
Anatol Belski 83efec88f7 set versions 2016-11-22 12:00:28 +01:00
8 changed files with 51 additions and 12 deletions

No files matched your search

+10 -3
View File
@@ -1,6 +1,6 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2016 PHP 7.0.14
08 Dec 2016 PHP 7.0.14
- Core:
. Fixed memory leak(null coalescing operator with Spl hash). (Tyson Andre)
@@ -41,6 +41,9 @@ PHP NEWS
. Fixed bug #73087, #61183, #71494 (Memory corruption in bindParam).
(Dorin Marcoci)
- Phar:
. Fixed bug #73580 (Phar::isValidPharFilename illegal memory access). (Stas)
- Postgres:
. Fixed bug #73498 (Incorrect SQL generated for pg_copy_to()). (Craig Duncan)
@@ -56,9 +59,13 @@ PHP NEWS
. Fixed bug #73530 (Unsetting result set may reset other result set). (cmb)
- Standard:
. Fixed bug #73297 (HTTP stream wrapper should ignore HTTP 100 Continue).
(rowan dot collins at gmail dot com)
. Fixed bug #73297 (HTTP stream wrapper should ignore HTTP 100 Continue).
(rowan dot collins at gmail dot com)
. Fixed bug #73645 (version_compare illegal write access). (Stas)
- Wddx:
. Fixed bug #73631 (Invalid read when wddx decodes empty boolean element).
(Stas)
- XML:
. Fixed bug #72135 (malformed XML causes fault) (edgarsandi)
+1 -1
View File
@@ -120,7 +120,7 @@ int zend_sprintf(char *buffer, const char *format, ...);
PHP_MAJOR_VERSION=7
PHP_MINOR_VERSION=0
PHP_RELEASE_VERSION=14
PHP_EXTRA_VERSION="-dev"
PHP_EXTRA_VERSION=""
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION`
+4
View File
@@ -1066,6 +1066,10 @@ PHP_METHOD(Phar, isValidPharFilename)
return;
}
if (ZEND_SIZE_T_INT_OVFL(fname_len)) {
RETURN_FALSE;
}
is_executable = executable;
RETVAL_BOOL(phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, is_executable, 2, 1) == SUCCESS);
}
+2 -2
View File
@@ -12,7 +12,7 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Stig Sæther Bakken <ssb@php.net> |
| Author: Stig Sæther Bakken <ssb@php.net> |
+----------------------------------------------------------------------+
*/
@@ -33,7 +33,7 @@
PHPAPI char *
php_canonicalize_version(const char *version)
{
int len = strlen(version);
size_t len = strlen(version);
char *buf = safe_emalloc(len, 2, 1), *q, lp, lq;
const char *p;
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #73631 (Memory leak due to invalid wddx stack processing)
--SKIPIF--
<?php if (!extension_loaded("wddx")) print "skip"; ?>
--FILE--
<?php
$xml = <<<EOF
<?xml version="1.0" ?>
<wddxPacket version="1.0">
<number>1234</number>
<binary><boolean/></binary>
</wddxPacket>
EOF;
$wddx = wddx_deserialize($xml);
var_dump($wddx);
?>
--EXPECTF--
int(1234)
+12 -2
View File
@@ -772,6 +772,11 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X
php_wddx_process_data(user_data, atts[i+1], strlen((char *)atts[i+1]));
break;
}
} else {
ent.type = ST_BOOLEAN;
SET_STACK_VARNAME;
ZVAL_FALSE(&ent.data);
wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry));
}
} else if (!strcmp((char *)name, EL_NULL)) {
ent.type = ST_NULL;
@@ -902,8 +907,13 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name)
}
if (!strcmp((char *)name, EL_BINARY)) {
zend_string *new_str = php_base64_decode(
(unsigned char *)Z_STRVAL(ent1->data), Z_STRLEN(ent1->data));
zend_string *new_str = NULL;
if (ZSTR_EMPTY_ALLOC() != Z_STR(ent1->data)) {
new_str = php_base64_decode(
(unsigned char *)Z_STRVAL(ent1->data), Z_STRLEN(ent1->data));
}
zval_ptr_dtor(&ent1->data);
if (new_str) {
ZVAL_STR(&ent1->data, new_str);
+2 -2
View File
@@ -3,6 +3,6 @@
#define PHP_MAJOR_VERSION 7
#define PHP_MINOR_VERSION 0
#define PHP_RELEASE_VERSION 14
#define PHP_EXTRA_VERSION "-dev"
#define PHP_VERSION "7.0.14-dev"
#define PHP_EXTRA_VERSION ""
#define PHP_VERSION "7.0.14"
#define PHP_VERSION_ID 70014
+2 -2
View File
@@ -3,13 +3,13 @@ cclient-2007f
freetype-2.6.2
icu-57.1
jpeglib-9b
libcurl-7.50.3
libcurl-7.51.0
libiconv-1.14
libmcrypt-2.5.8
libmpir-2.7.2
libpng-1.6.21
libpq-9.5.3
libssh2-1.7.0
libssh2-1.8.0
libtidy-20090406
libxslt-1.1.29
libxml-2.9.4