1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/main
Christoph M. Becker 887e6b9c45 Fix GH-15181: Disabled output handler is flushed again
When an `PHP_OUTPUT_HANDLER_FAILURE` occurs, the output handler becomes
disabled (i.e. the `PHP_OUTPUT_HANDLER_DISABLED` flag is set).  However,
there is no guard for disabled handlers in `php_output_handler_op()`
what may cause serious issues (as reported, UB due to passing `NULL` as
the 2nd argument of `memcpy`, because the handler's buffer has already
been `NULL`ed).  Therefore, we add a respective guard for disabled
handlers, and return `PHP_OUTPUT_HANDLER_FAILURE` right away.

Closes GH-15183.
2024-08-06 16:45:51 +02:00
..
2024-05-19 22:57:08 +02:00
2024-06-24 19:57:28 +02:00
2024-05-29 07:04:05 +02:00
2024-05-29 07:04:05 +02:00
2024-07-22 22:26:02 +02:00
2023-07-25 17:54:14 +02:00
2024-06-09 14:23:41 +02:00
2024-02-23 23:16:43 +01:00
2024-06-10 23:03:49 +02:00
2024-06-01 17:12:42 +01:00
2024-02-08 12:08:07 +01:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00