Skip to content

FFI and provenance #608

@joshlf

Description

@joshlf

This is related to #466

Consider an extern function which returns a pointer:

#[repr(C)]
struct Foo { ... }

extern "C" fn new_foo() -> *Foo;

Does new_foo return a pointer with provenance for its entire referent? In other words, does new_foo "introduce" new memory into the Rust AM (assuming that it isn't returning a pointer to memory which is already in the AM)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions