Skip to content

internal fn propagate_recursive is unsound (unexploitably) #6983

@BoxyUwU

Description

@BoxyUwU

this code is incorrect as the function is not marked unsafe. a caller could already have a borrow from that query out on Entity which would lead to aliasing & and &mut

cc @james7132 since this was discussed on discord in the ecs-dev channel

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsP-UnsoundA bug that results in undefined compiler behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions