Skip to content

Tcs should not be a NonNull pointer #407

Closed
@joboet

Description

@joboet

TCSs may be located at logical address zero. Defining Tcs to be NonNull leads to bugs and even soundness issues that may be exposed to attackers. For instance, the internal abi::thread::current() function in the Rust standard library does not check for zero pointers and unconditionally returns a NonNull. If the TCS address is null, this leads to immediate undefined behaviour.

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