Skip to content
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

Fix free of uninitialized memory in MATCH_ERROR #5841

Closed

Conversation

iluuu1994
Copy link
Member

As suggested by Tyson Andre:
#5371 (comment)

Also fix line number of unhandled match error

@iluuu1994 iluuu1994 force-pushed the fix-match-free-uninitialized-memory branch from 1227eb5 to 6085c82 Compare July 11, 2020 17:12
@iluuu1994
Copy link
Member Author

Actually, the setting of CG(zend_lineno) wasn't even necessary any more since default was moved to the top.

@iluuu1994 iluuu1994 force-pushed the fix-match-free-uninitialized-memory branch from 9bf1e53 to da6d379 Compare July 11, 2020 17:26
As suggested by Tyson Andre:
php#5371 (comment)

Also fix line number of unhandled match error
@iluuu1994 iluuu1994 force-pushed the fix-match-free-uninitialized-memory branch from da6d379 to 3c4a712 Compare July 11, 2020 17:27
@TysonAndre
Copy link
Contributor

LGTM, waiting for build to pass.

It'd also be useful to add the test case that Nikita Popov mentioned for the live range values (e.g. opt_debug_level=0x10000 or a lower optimization level)

@iluuu1994
Copy link
Member Author

Ok to merge?

@php-pulls php-pulls closed this in 1c967df Jul 12, 2020
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.

None yet

3 participants