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
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::resetshould return an error rather than panic when not enough data is available.Describe alternatives you've considered
Keep the
assertin place and panic.Additional context