]> granicus.if.org Git - php/log
php
6 years agoFix some sign-related issues in comparisons
jvoisin [Tue, 8 Jan 2019 21:08:40 +0000 (22:08 +0100)]
Fix some sign-related issues in comparisons

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 9 Jan 2019 08:51:28 +0000 (09:51 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77289
Lauri Kenttä [Wed, 9 Jan 2019 08:50:26 +0000 (09:50 +0100)]
Fixed bug #77289

Use mysqlnd_restart_psession and mysqlnd_end_psession in PDO MySQL.
This makes sure we free last_message while ZMM is still live.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 9 Jan 2019 08:28:04 +0000 (09:28 +0100)]
Merge branch 'PHP-7.3'

6 years agoMake operator swapping depend on IGNORE_OVERLOADING flag
Nikita Popov [Wed, 9 Jan 2019 08:26:49 +0000 (09:26 +0100)]
Make operator swapping depend on IGNORE_OVERLOADING flag

Add MUL back to the list and instead make the entire optimization
depend on IGNORE_OVERLOADING, which is there exactly so we can make
these kinds of assumptions.

6 years agoMerge branch 'PHP-7.3'
Sara Golemon [Tue, 8 Jan 2019 19:20:30 +0000 (14:20 -0500)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Bump for 7.1.27

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Sara Golemon [Tue, 8 Jan 2019 19:20:18 +0000 (14:20 -0500)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Bump for 7.1.27

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Sara Golemon [Tue, 8 Jan 2019 19:19:37 +0000 (14:19 -0500)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Bump for 7.1.27

6 years agoBump for 7.1.27
Sara Golemon [Tue, 8 Jan 2019 19:17:43 +0000 (14:17 -0500)]
Bump for 7.1.27

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 8 Jan 2019 16:24:35 +0000 (17:24 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Sync NEWS with 7.3.1

6 years agoSync NEWS with 7.3.1
Christoph M. Becker [Tue, 8 Jan 2019 16:23:30 +0000 (17:23 +0100)]
Sync NEWS with 7.3.1

All these bugs are fixed in PHP-7.3.1 already.

6 years agoMerge branch 'PHP-7.3'
Xinchen Hui [Tue, 8 Jan 2019 11:19:44 +0000 (19:19 +0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77266 (Assertion failed in dce_live_ranges)

6 years agoFixed bug #77266 (Assertion failed in dce_live_ranges)
Xinchen Hui [Tue, 8 Jan 2019 11:17:46 +0000 (19:17 +0800)]
Fixed bug #77266 (Assertion failed in dce_live_ranges)

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 8 Jan 2019 09:21:54 +0000 (10:21 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77428
Nikita Popov [Tue, 8 Jan 2019 09:21:01 +0000 (10:21 +0100)]
Fixed bug #77428

mb_ereg_replace historically has not supported escaping backslashes
with backslashes. Go back to that behavior for BC reasons.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 8 Jan 2019 08:38:11 +0000 (09:38 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 8 Jan 2019 08:38:02 +0000 (09:38 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoDon't swap operands of ZEND_MUL
Nikita Popov [Tue, 8 Jan 2019 08:36:48 +0000 (09:36 +0100)]
Don't swap operands of ZEND_MUL

If this is used with operator overloading, then the operation does
not necessarily commute (for example, matrix multiplication).

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Tue, 8 Jan 2019 08:34:24 +0000 (09:34 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  cleanup merge

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 8 Jan 2019 08:34:05 +0000 (09:34 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  cleanup merge

6 years agocleanup merge
Remi Collet [Tue, 8 Jan 2019 08:33:41 +0000 (09:33 +0100)]
cleanup merge

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 8 Jan 2019 08:26:44 +0000 (09:26 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 8 Jan 2019 08:26:31 +0000 (09:26 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoPrefix error_code with underscore in FastZPP implementation
twosee [Tue, 8 Jan 2019 08:24:51 +0000 (09:24 +0100)]
Prefix error_code with underscore in FastZPP implementation

To avoid conflicts with parameter names.

6 years agoConst changes
Andrey Hristov [Mon, 7 Jan 2019 18:16:33 +0000 (20:16 +0200)]
Const changes

6 years agoSimplify the command factory
Andrey Hristov [Mon, 7 Jan 2019 16:45:33 +0000 (18:45 +0200)]
Simplify the command factory

Since more than an year it not possible to create commands in the heap
but they are allocated on the stack and directly run. In this regard, it
doesn't make sense to have all the vararg stuff. Commands made sense
to be created and pushed onto a stack then a general executor will
run thru the stack and execute/handle the commands.

6 years agoRemove unnecessary uses of object_and_properties_init
Nikita Popov [Mon, 7 Jan 2019 15:00:01 +0000 (16:00 +0100)]
Remove unnecessary uses of object_and_properties_init

Use object_init_ex instead if the properties are NULL.

6 years agoMark const what should not be changed
Andrey Hristov [Mon, 7 Jan 2019 13:06:57 +0000 (15:06 +0200)]
Mark const what should not be changed

6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Mon, 7 Jan 2019 12:49:01 +0000 (12:49 +0000)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Mon, 7 Jan 2019 12:48:49 +0000 (12:48 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoUpdate tests due to data changes in tzdata 2018i
Derick Rethans [Mon, 7 Jan 2019 12:48:42 +0000 (12:48 +0000)]
Update tests due to data changes in tzdata 2018i

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Mon, 7 Jan 2019 12:11:31 +0000 (13:11 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix NEWS
  Updated to version 2018.9 (2018i)

6 years agoFix NEWS
Christoph M. Becker [Mon, 7 Jan 2019 12:11:04 +0000 (13:11 +0100)]
Fix NEWS

The fixes for bug #77359 and #77360 have been ported to PHP-7.3.1, and
the release has been postponed by one week.

6 years agoUpdated to version 2018.9 (2018i)
Derick Rethans [Mon, 7 Jan 2019 11:50:17 +0000 (11:50 +0000)]
Updated to version 2018.9 (2018i)

6 years agoEmpty merge
Derick Rethans [Mon, 7 Jan 2019 11:50:17 +0000 (11:50 +0000)]
Empty merge

6 years agoUpdated to version 2018.9 (2018i)
Derick Rethans [Mon, 7 Jan 2019 11:50:16 +0000 (11:50 +0000)]
Updated to version 2018.9 (2018i)

6 years agoEmpty merge
Derick Rethans [Mon, 7 Jan 2019 11:50:16 +0000 (11:50 +0000)]
Empty merge

6 years agoUpdated to version 2018.9 (2018i)
Derick Rethans [Mon, 7 Jan 2019 11:50:14 +0000 (11:50 +0000)]
Updated to version 2018.9 (2018i)

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Mon, 7 Jan 2019 10:12:58 +0000 (11:12 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] fix NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Mon, 7 Jan 2019 10:12:46 +0000 (11:12 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] fix NEWS

6 years ago[ci skip] fix NEWS
Remi Collet [Mon, 7 Jan 2019 10:12:13 +0000 (11:12 +0100)]
[ci skip] fix NEWS

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Mon, 7 Jan 2019 10:03:14 +0000 (11:03 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] fix NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Mon, 7 Jan 2019 10:02:58 +0000 (11:02 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] fix NEWS

6 years ago[ci skip] fix NEWS
Remi Collet [Mon, 7 Jan 2019 10:02:40 +0000 (11:02 +0100)]
[ci skip] fix NEWS

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Mon, 7 Jan 2019 09:05:33 +0000 (10:05 +0100)]
Merge branch 'PHP-7.3'

6 years agoFix one issue reported in bug #77310
Nikita Popov [Mon, 7 Jan 2019 08:58:59 +0000 (09:58 +0100)]
Fix one issue reported in bug #77310

SCCP did not handle array ASSIGN_* with a BOT operand correctly.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 7 Jan 2019 09:04:16 +0000 (01:04 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoMerge branch 'PHP-7.2'
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:55 +0000 (01:03 -0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoStill leaking for some reason, XFAIL for now, I'll look into it later.
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:04 +0000 (01:03 -0800)]
Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:26 +0000 (01:03 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoStill leaking for some reason, XFAIL for now, I'll look into it later.
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:04 +0000 (01:03 -0800)]
Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoMerge branch 'PHP-7.3'
Stanislav Malyshev [Mon, 7 Jan 2019 07:35:27 +0000 (23:35 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  Add NEWS
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 7 Jan 2019 07:34:46 +0000 (23:34 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  Add NEWS
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 7 Jan 2019 07:34:02 +0000 (23:34 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  Add NEWS
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-5.6' into PHP-7.1
Stanislav Malyshev [Mon, 7 Jan 2019 07:32:36 +0000 (23:32 -0800)]
Merge branch 'PHP-5.6' into PHP-7.1

* PHP-5.6:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoFix bug #77418 - Heap overflow in utf32be_mbc_to_code
Stanislav Malyshev [Mon, 7 Jan 2019 07:31:15 +0000 (23:31 -0800)]
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code

6 years agoMerge branch 'PHP-7.3'
Stanislav Malyshev [Sun, 6 Jan 2019 21:50:48 +0000 (13:50 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix tests - newer versions check Unicode
  Add NEWS
  Add NEWS
  Fix test

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Sun, 6 Jan 2019 21:50:28 +0000 (13:50 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests - newer versions check Unicode
  Add NEWS
  Fix test

6 years agoFix tests - newer versions check Unicode
Stanislav Malyshev [Sun, 6 Jan 2019 21:28:30 +0000 (13:28 -0800)]
Fix tests - newer versions check Unicode

6 years agoAdd NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:11:55 +0000 (13:11 -0800)]
Add NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 6 Jan 2019 21:05:49 +0000 (13:05 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add NEWS

6 years agoAdd NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:04:51 +0000 (13:04 -0800)]
Add NEWS

6 years agoAdd NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:04:51 +0000 (13:04 -0800)]
Add NEWS

6 years ago[ci skip] Add NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:03:38 +0000 (13:03 -0800)]
[ci skip] Add NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 6 Jan 2019 20:54:09 +0000 (12:54 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix test

6 years agoMerge branch 'PHP-7.3'
Stanislav Malyshev [Sun, 6 Jan 2019 20:50:10 +0000 (12:50 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77367: Negative size parameter in mb_split
  Fix #77369 - memcpy with negative length via crafted DNS response
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoFix test
Stanislav Malyshev [Sun, 6 Jan 2019 20:30:44 +0000 (12:30 -0800)]
Fix test

6 years agoFix #77367: Negative size parameter in mb_split
Christoph M. Becker [Sat, 29 Dec 2018 13:17:23 +0000 (14:17 +0100)]
Fix #77367: Negative size parameter in mb_split

When adding the last element to the result value of `mb_split`, the
`chunk_pos` may point beyond the end of the string, in which case the
unsigned `n` would underflow.  Therefore, we check whether this is the
case in the first place, and only calculate `n` otherwise.  Since `n`
is no longer used outside the block, we move its declaration inside.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Sun, 6 Jan 2019 20:23:53 +0000 (12:23 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77369 - memcpy with negative length via crafted DNS response
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 6 Jan 2019 19:57:16 +0000 (11:57 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77369 - memcpy with negative length via crafted DNS response
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoFix #77369 - memcpy with negative length via crafted DNS response
Stanislav Malyshev [Sun, 30 Dec 2018 04:39:08 +0000 (20:39 -0800)]
Fix #77369 - memcpy with negative length via crafted DNS response

6 years agoFix more issues with encodilng length
Stanislav Malyshev [Wed, 2 Jan 2019 08:36:30 +0000 (00:36 -0800)]
Fix more issues with encodilng length

Should fix bug #77381, bug #77382, bug #77385, bug #77394.

6 years agoFix #77270: imagecolormatch Out Of Bounds Write on Heap
Christoph M. Becker [Sun, 30 Dec 2018 12:59:26 +0000 (13:59 +0100)]
Fix #77270: imagecolormatch Out Of Bounds Write on Heap

At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal.  We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.

6 years agoFix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Stanislav Malyshev [Wed, 2 Jan 2019 01:15:20 +0000 (17:15 -0800)]
Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)

6 years agoFix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Stanislav Malyshev [Sun, 30 Dec 2018 04:06:08 +0000 (20:06 -0800)]
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)

6 years agoFix bug #77370 - check that we do not read past buffer end when parsing multibytes
Stanislav Malyshev [Sun, 30 Dec 2018 03:51:24 +0000 (19:51 -0800)]
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes

6 years agoFix #77269: Potential unsigned underflow in gdImageScale
Christoph M. Becker [Wed, 12 Dec 2018 15:00:59 +0000 (16:00 +0100)]
Fix #77269: Potential unsigned underflow in gdImageScale

Belatedly, we're porting the respective upstream patch[1].

[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35>

6 years agoFix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Stanislav Malyshev [Sun, 30 Dec 2018 02:25:37 +0000 (18:25 -0800)]
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)

6 years agoFix bug #77242 (heap out of bounds read in xmlrpc_decode())
Stanislav Malyshev [Sun, 30 Dec 2018 01:56:36 +0000 (17:56 -0800)]
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())

6 years agoRegenerate certs for openssl tests
Alexander Kurilo [Mon, 31 Dec 2018 09:19:36 +0000 (12:19 +0300)]
Regenerate certs for openssl tests

6 years agoFix more issues with encodilng length
Stanislav Malyshev [Wed, 2 Jan 2019 08:36:30 +0000 (00:36 -0800)]
Fix more issues with encodilng length

Should fix bug #77381, bug #77382, bug #77385, bug #77394.

6 years agoFix #77270: imagecolormatch Out Of Bounds Write on Heap
Christoph M. Becker [Sun, 30 Dec 2018 12:59:26 +0000 (13:59 +0100)]
Fix #77270: imagecolormatch Out Of Bounds Write on Heap

At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal.  We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.

6 years agoFix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Stanislav Malyshev [Wed, 2 Jan 2019 01:15:20 +0000 (17:15 -0800)]
Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)

6 years agoFix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Stanislav Malyshev [Sun, 30 Dec 2018 04:06:08 +0000 (20:06 -0800)]
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)

6 years agoFix bug #77370 - check that we do not read past buffer end when parsing multibytes
Stanislav Malyshev [Sun, 30 Dec 2018 03:51:24 +0000 (19:51 -0800)]
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes

6 years agoFix #77269: Potential unsigned underflow in gdImageScale
Christoph M. Becker [Wed, 12 Dec 2018 15:00:59 +0000 (16:00 +0100)]
Fix #77269: Potential unsigned underflow in gdImageScale

Belatedly, we're porting the respective upstream patch[1].

[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35>

6 years agoFix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Stanislav Malyshev [Sun, 30 Dec 2018 02:25:37 +0000 (18:25 -0800)]
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)

6 years agoFix bug #77242 (heap out of bounds read in xmlrpc_decode())
Stanislav Malyshev [Sun, 30 Dec 2018 01:56:36 +0000 (17:56 -0800)]
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())

6 years agoFix a warning about comparing signed/unsigned variables
jvoisin [Sat, 5 Jan 2019 14:51:17 +0000 (15:51 +0100)]
Fix a warning about comparing signed/unsigned variables

This can be seen here: https://travis-ci.org/nbs-system/snuffleupagus/jobs/473895085#L685

6 years agoPreserve aspect ratio for width or height
Andreas Treichel [Sat, 29 Dec 2018 18:41:57 +0000 (19:41 +0100)]
Preserve aspect ratio for width or height

6 years agoRemove separate *nix system build for Zend engine
Peter Kokot [Sun, 2 Dec 2018 08:23:20 +0000 (09:23 +0100)]
Remove separate *nix system build for Zend engine

Removed files used to provide building Zend engine separately using
Autoconf and Automake:
  cd Zend && ./buildconf && ./configure

Since Zend engine is tightly integrated in the PHP code itself and
current root configure.ac and acinclude provide this patch removes
these. Removed files also included several obsolete macros and
Automake dependency which is not used in main *nix PHP build system.

6 years agoconst-ify some functions
Andrey Hristov [Fri, 4 Jan 2019 11:55:05 +0000 (13:55 +0200)]
const-ify some functions

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 4 Jan 2019 11:41:30 +0000 (12:41 +0100)]
Merge branch 'PHP-7.3'

6 years agoFix bug #77410
Nikita Popov [Fri, 4 Jan 2019 11:40:28 +0000 (12:40 +0100)]
Fix bug #77410

6 years agoAdd type safety for mysqlnd plugin developers
Andrey Hristov [Fri, 4 Jan 2019 10:39:56 +0000 (12:39 +0200)]
Add type safety for mysqlnd plugin developers

6 years agoResolve parent::class at compile-time if possible
Nikita Popov [Fri, 4 Jan 2019 11:10:22 +0000 (12:10 +0100)]
Resolve parent::class at compile-time if possible

And remove some dead code.

6 years agoDetect invalid uses of parent:: during compilation
Nikita Popov [Fri, 4 Jan 2019 10:55:41 +0000 (11:55 +0100)]
Detect invalid uses of parent:: during compilation

We already detect the case where we're entirely outside a class --
now also check whether there actually is a parent.

This is a minor BC break, in that code that was never executed
might have previously contained an invalid parent:: reference without
generating an error.

6 years agoSupport parent::class inside constexpr contexts
Nikita Popov [Fri, 4 Jan 2019 10:38:35 +0000 (11:38 +0100)]
Support parent::class inside constexpr contexts

6 years agoHandle self::class separately from __CLASS__ in const eval
Nikita Popov [Fri, 4 Jan 2019 10:28:07 +0000 (11:28 +0100)]
Handle self::class separately from __CLASS__ in const eval

6 years agoRevert visibility
Andrey Hristov [Fri, 4 Jan 2019 09:37:54 +0000 (11:37 +0200)]
Revert visibility