Skip to content

Public API of bp7 exposes UB to safe code #2

@dtolnay

Description

@dtolnay

For example, the following safe program leads to bp7 performing Undefined Behavior:

// [dependencies]
// bp7 = "0.9.2"

fn main() {
    bp7::ffi::bundle_payload(0xdeadbeefusize as _);
}
Segmentation fault (core dumped)

In general it is unsound for a safe API to result in UB.

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