Skip to content

Make syslog() binary safe #7245

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 3 commits into from
Closed

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jul 15, 2021

This was intended to be only a refactoring but staring at the code I spotted that the message would be truncated if a nul byte is present, not sure if this should be classified a bug fix or not.

My approach seems needlessly complicated but couldn't come up with anything else.

I also wonder if this shouldn't be refactored more to get rid of the remaining smart_string usage by converting it to a smart_str

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

This looks good to me, but looks like your new tests are failing due to platform diffs?

Girgias and others added 2 commits July 15, 2021 11:12
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
@Girgias Girgias closed this in 0ba155c Jul 15, 2021
@Girgias Girgias deleted the syslog-zend_str branch July 15, 2021 17:11
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