samtools / htscodecs

Custom compression for CRAM and others.
Other
30 stars 18 forks source link

Fix an overflow with freq=4096 in the SSE4 decoder. #102

Closed jkbonfield closed 1 year ago

jkbonfield commented 1 year ago

Specifically, the SIMD decoder handles this case, but the tidyup code at the end for any remainder of < 32 bytes to go didn't.

Triggered by the follow example:

perl -e 'print "\0"x0xff0,"AAABAA\0"'|./tests/rans4x16pr -t -o5 -c 0x0201