Skip to content

Fix #73527: Invalid memory access in php_filter_strip - #5660

Closed
cmb69 wants to merge 2 commits into
php:PHP-7.3from
cmb69:cmb/73527
Closed

cmb69 wants to merge 2 commits into
php:PHP-7.3from
cmb69:cmb/73527

Conversation

@cmb69

@cmb69 cmb69 commented Jun 4, 2020

Copy link
Copy Markdown
Member

No description provided.

@nikic nikic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: The + 1 in the allocation is incorrect. zend_string_alloc adds +1 for the null byte itself.

`zend_string_init()` already adds space for the NUL byte.
@cmb69

cmb69 commented Jun 4, 2020

Copy link
Copy Markdown
Member Author

Thanks! Applied as ceae816.

@cmb69 cmb69 closed this Jun 4, 2020
@cmb69
cmb69 deleted the cmb/73527 branch June 4, 2020 11:42
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