Skip to content

Fix #80863: ZipArchive::extractTo() ignores references #6959

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

Closed
wants to merge 2 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented May 7, 2021

We need to cater to references, when traversing the files to extract.
While we're at it, we add an empty default clause, which would have
caught this issue. We also move the zval_file declaration into a
narrower scope, which makes it easier to reason about the value
modification.

We need to cater to references, when traversing the files to extract.
While we're at it, we add an empty default clause, which would have
caught this issue.  We also move the `zval_file` declaration into a
narrower scope, which makes it easier to reason about the value
modification.
@cmb69 cmb69 added the Bug label May 7, 2021
We can simplify by using `zend_hash_index_find_deref()`.  We must not
have an empty default clause, since the array is allowed to contain
arbitrary values.
@cmb69 cmb69 closed this in 57918b1 May 7, 2021
@cmb69 cmb69 deleted the cmb/80863 branch May 7, 2021 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants