Skip to content

Unsoundness in swift-bridge #2151

@lwz23

Description

@lwz23

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lwz23

        Issue actions

          Unsoundness in swift-bridge · Issue #2151 · rustsec/advisory-db