1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 17:13:31 +02:00
Files
archived-php-src/ext/opcache/tests/opt
Niels Dossche 2c53d63197 Fix GH-10801: Named arguments in CTE functions cause a segfault
Fixes GH-10801

Named arguments are not supported by the constant evaluation routine, in
the sense that they are ignored. This causes two issues:
  - It causes a crash because not all oplines belonging to the call are
    removed, which results in SEND_VA{L,R} which should've been removed.
  - It causes semantic issues (demonstrated in the test case).

This case never worked anyway, leading to crashes or incorrect behaviour,
so just prevent CTE of calls with named parameters for now.
We can choose to support it later, but introducing support for this in
a stable branch seems too dangerous.

This patch does not change the removal of SEND_* opcodes in remove_call
because the crash bug can't be triggered anymore with this patch as
there are no named parameters anymore and no variadic CTE functions
exist.

Closes GH-10811.
2023-03-10 19:22:44 +01:00
..
2022-08-29 17:12:57 +03:00
2022-11-07 11:07:58 +03:00
2022-08-29 17:12:57 +03:00
2021-04-08 18:24:57 +02:00
2021-04-08 17:01:13 +02:00
2021-04-08 17:06:40 +02:00
2022-02-28 11:44:22 +03:00
2022-04-10 11:22:36 +02:00
2022-04-25 12:15:55 +03:00
2022-05-11 12:09:11 +03:00
2022-05-11 12:39:26 +03:00
2022-05-16 12:41:25 +03:00
2022-06-06 11:13:53 +03:00
2022-06-14 10:20:45 +03:00
2022-06-14 11:59:35 +03:00
2022-07-18 14:20:06 +03:00
2022-07-25 15:53:06 +03:00
2022-08-22 21:11:39 +03:00
2022-06-20 10:59:37 +03:00
2021-12-10 01:39:28 +03:00
2021-12-24 13:10:22 +03:00
2022-01-10 19:39:19 +03:00
2022-03-11 11:32:23 +03:00
2022-05-16 13:45:31 +03:00