Skip to content

fail_bounds_check incorrectly casts temporary to static #11976

Closed
@brson

Description

@brson

fail_bounds_check creates an error string dynamically, then passes it as an unsafe pointer to fail_, which then casts the string to &'static str, then to ~Any, then throws it to another task.

Nominating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions