Skip to content

adding memmem fallback implementation proposal. #8391

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

devnexen
Copy link
Member

must be a rare occurence nowadays tough.

@devnexen devnexen force-pushed the memmem_impl branch 2 times, most recently from 48a9ab8 to e5be53c Compare April 17, 2022 12:12
@nikic
Copy link
Member

nikic commented Apr 17, 2022

This is for the usage in libmagic? I think it would make more sense to replace it with zend_memnstr, which is our optimized implementation of this functionality.

@devnexen
Copy link
Member Author

ah right I did not notice these, thanks.

@cmb69
Copy link
Member

cmb69 commented Apr 18, 2022

cc @weltling

@cmb69
Copy link
Member

cmb69 commented Apr 25, 2022

If we modify libmagic, that modification also needs to be in libmagic.patch; otherwise, the modification will likely be overwritten after updating libmagic.

@devnexen
Copy link
Member Author

ping :-) @cmb69

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

I'm not too fond of patching the bundled libmagic further, but in this case it makes some sense.

@cmb69 cmb69 closed this in 45e623d May 23, 2022
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.

4 participants