Infinite loop on corrupted bitstreams in rc_uni_dec_read_bits()
# Basic info <!--- Add commit SHA used to reproduce --> - Fixed point: - Decoder (fixed): e764e9dc433c80a0e7d70ac009356d0d3d742c94 # Bug description Float computes `val = low / range` (`ivas_range_uni_dec.c`). BASOP uses a counting loop instead: ```bash UWord32 tmp; ... FOR( tmp = range; tmp <= low; tmp += range ) { val = UL_addNsD( val, 1 ); } ``` After a bit error, the functions set `rc_low = rc_range = 0xFFFFFFFF`, which causes the next call to fail again. With `low = 0xFFFFFFFF` (maximum UWord32), the condition `tmp <= low` is always true, so the loop never terminates and the decoder hangs. As a result, the error check after the loop is never reached. <!--- Below are labels that will be added but are not shown in description. This is a template to help fill them. Add further information to the first row and remove and add labels as necessary. -->
issue