Skip to content

error.rs: check range and add type invariant to Error #295

Closed
@ojeda

Description

@ojeda

From @nbdd0121 #287 (comment):

We will need to make sure that no Error with out of range error code can be constructed (e.g. 0, > MAX_ERROR), as otherwise it might be a soundness hole (with the use of from_kernel_result for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers• libRelated to the `rust/` library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions