Skip to content

Option<*const T> is incorrectly converted to const T* #223

@eqrion

Description

@eqrion

The logic in this function is bogus.

This is a safety issue, as dropping the Option is only valid if the pointer is non-nullable.

The problem here is coming from the fact that cbindgen is dropping the knowledge of whether the pointer is nullable or not before this function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions