Skip to content

Fix access on NULL pointer in array_merge_recursive() #11303

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

Conversation

iluuu1994
Copy link
Member

@iluuu1994 iluuu1994 commented May 23, 2023

@dstogov Please check if this looks good to you. I checked all the zend_hash_next_index_insert() calls to make sure they handle NULL values but couldn't find any other obvious faulty cases. I opted for Z_TRY_DELREF_P rather than moving the Z_TRY_ADDREF_P into an if to avoid a jump in the happy-path.

@iluuu1994 iluuu1994 requested a review from dstogov May 23, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants