Skip to content

fix malloc used unchecked#9014

Closed
hwde wants to merge 1 commit intophp:PHP-8.1from
hwde:ext_dom_php_dom_malloc
Closed

fix malloc used unchecked#9014
hwde wants to merge 1 commit intophp:PHP-8.1from
hwde:ext_dom_php_dom_malloc

Conversation

@hwde
Copy link
Contributor

@hwde hwde commented Jul 14, 2022

No description provided.

@hwde hwde force-pushed the ext_dom_php_dom_malloc branch from c92047a to 7a36f32 Compare July 14, 2022 20:56
@hwde hwde changed the base branch from master to PHP-8.1 July 14, 2022 20:57
@juan-morales
Copy link
Contributor

I was just checking out this change and I did not understand what was the difference.

Then I found this e-mail in the Internet and would like to share it in case someone newbie like me has the same questio.

https://www.mail-archive.com/php-dev@lists.php.net/msg42335.html

@hwde
Copy link
Contributor Author

hwde commented Jul 14, 2022

Oops, maybe I'm wrong with it, I want to use the "malloc" and ensure you get what you want allocation (tested against NULL). It is late ...

@hwde hwde closed this Jul 14, 2022
@hwde hwde deleted the ext_dom_php_dom_malloc branch July 14, 2022 21:37
@cmb69
Copy link
Member

cmb69 commented Jul 15, 2022

@hwde, are you planning to follow up with a fix?

@juan-morales, see https://www.phpinternalsbook.com/php7/memory_management/zend_memory_manager.html for a more comprehensive explanation.

@hwde
Copy link
Contributor Author

hwde commented Jul 15, 2022

I've created a new PR in #9015, because I mix up the base and used master branch here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants