mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
887e6b9c45
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. |
||
---|---|---|
.. | ||
basic | ||
classes | ||
func | ||
lang | ||
output | ||
run-test | ||
security | ||
strings |