Skip to content

avoid panic in decode_mut #126

@dignifiedquire

Description

@dignifiedquire

It seems like a footgun to use an assert in decode_mut for checking the length. It would be much nicer if it returned an error instead, if the length do not much.

See n0-computer/iroh#3155 for an example of where this was a problem

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions