As the new tests (53accab36dba8473a23af72ad41a0dd42d8849dc) for the RS encoder/decoder show, the decoding of shortened codes (pad > 0) is broken.
As the new tests (53accab) for the RS encoder/decoder show, the decoding of shortened codes (pad > 0) is broken.