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

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

    Issue actions