Skip to content

New test case from ed0c0df351 exercises the code it was intended to #10666

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 1 commit into from

Conversation

alexdowad
Copy link
Contributor

In ed0c0df, Niels Dossche fixed a bug in mbstring whereby mb_convert_encoding could dereference a NULL pointer and crash if it was called on an array, with multiple candidate encodings, and at least one of the strings inside the array was invalid in all the candidate encodings.

He kindly included a test case, but after being merged into master, the test case was not actually testing what it was intended to test. That is now fixed.

As discussed in #10628.

@Girgias @nielsdos

In ed0c0df, Niels Dossche fixed a bug in mbstring whereby
mb_convert_encoding could dereference a NULL pointer and crash if
it was called on an array, with multiple candidate encodings, and at
least one of the strings inside the array was invalid in all the
candidate encodings.

He kindly included a test case, but after being merged into master,
the test case was not actually testing what it was intended to test.
That is now fixed.
@nielsdos
Copy link
Member

This looks good to me, thank you!

@alexdowad alexdowad closed this Feb 22, 2023
@alexdowad alexdowad deleted the fixtest branch February 22, 2023 21:07
@alexdowad
Copy link
Contributor Author

Landed, thanks very much.

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