Skip to content

Fix GH-15496: Fix accessing NULL pointer on output handler stack #19446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: PHP-8.3
Choose a base branch
from

Conversation

alexandre-daubois
Copy link
Contributor

@alexandre-daubois alexandre-daubois commented Aug 11, 2025

Fix #15496

This PR prevents zend_stack_push() from being called when the PHP_OUTPUT_ACTIVATED flag is cleared by php_output_deactivate(). The new test case also crashes on branch PHP-8.3 and is passing with this fix.

@alexandre-daubois alexandre-daubois changed the base branch from master to PHP-8.3 August 11, 2025 09:37
@alexandre-daubois alexandre-daubois force-pushed the output-asan-err branch 2 times, most recently from 88a94f8 to d37cd68 Compare August 11, 2025 09:58
@alexandre-daubois
Copy link
Contributor Author

Unfortunately it doesn't fix the problem on Windows... 🤔

@alexandre-daubois alexandre-daubois marked this pull request as draft August 11, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant