Skip to content
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

Don't pass non-UTF-8 bytes as string from Ruby to Rust #1595

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

heinrich5991
Copy link
Contributor

This would be UB on the Rust side. Add some tests verifying that this is caught in both Ruby and Python.

This would be UB on the Rust side. Add some tests verifying that this is
caught in both Ruby and Python.
@heinrich5991 heinrich5991 requested a review from a team as a code owner June 14, 2023 16:09
@heinrich5991 heinrich5991 requested review from jhugman and removed request for a team June 14, 2023 16:09
@badboy badboy added this to the v0.24.0 milestone Jun 15, 2023
@badboy badboy merged commit a123d11 into mozilla:main Jun 15, 2023
heinrich5991 added a commit to heinrich5991/uniffi-rs that referenced this pull request Jun 15, 2023
Also fixes that bytes had to be valid UTF-8 due to mozilla#1595.
heinrich5991 added a commit to heinrich5991/uniffi-rs that referenced this pull request Jun 15, 2023
Also fixes that bytes had to be valid UTF-8 due to mozilla#1595.
badboy pushed a commit that referenced this pull request Jun 19, 2023
Also fixes that bytes had to be valid UTF-8 due to #1595.
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