Skip to content

Return error from RleDecoder::reset rather than panic #8632

@etseidl

Description

@etseidl

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

During review of #8602 it was noticed that one panic was retained, albeit with a more descriptive message (#8602 (comment)).

Describe the solution you'd like
RleDecoder::reset should return an error rather than panic when not enough data is available.

Describe alternatives you've considered
Keep the assert in place and panic.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions