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

Unsoundness in swift-bridge #2151

Open
lwz23 opened this issue Dec 2, 2024 · 0 comments
Open

Unsoundness in swift-bridge #2151

lwz23 opened this issue Dec 2, 2024 · 0 comments

Comments

@lwz23
Copy link

lwz23 commented Dec 2, 2024

see chinedufn/swift-bridge#304 for detail.
Description
The current implementation of the FfiSlice struct introduces potential undefined behavior (UB) due to the lack of safety guarantees when public fields are directly passed to an unsafe API (std::slice::from_raw_parts).

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

No branches or pull requests

1 participant