Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix free of uninitialized memory in MATCH_ERROR#5841

Closed
iluuu1994 wants to merge 1 commit into
php:masterphp/php-src:masterfrom
iluuu1994:fix-match-free-uninitialized-memoryiluuu1994/php-src:fix-match-free-uninitialized-memoryCopy head branch name to clipboard
Closed

Fix free of uninitialized memory in MATCH_ERROR#5841
iluuu1994 wants to merge 1 commit into
php:masterphp/php-src:masterfrom
iluuu1994:fix-match-free-uninitialized-memoryiluuu1994/php-src:fix-match-free-uninitialized-memoryCopy head branch name to clipboard

Conversation

@iluuu1994
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

Comment thread Zend/zend_compile.c Outdated
@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
Copy Markdown
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)

Comment thread Zend/zend_compile.c
@iluuu1994
Copy link
Copy Markdown
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.