samtools / htscodecs

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

Trivial bug fix to tests/r4x16pr demo. #86

Closed jkbonfield closed 1 year ago

jkbonfield commented 1 year ago

If we have uncompressible data with size almost BLK_SIZE, then the compressed size gets larger than BLK_SIZE (ie the meta-data to indicate "CAT" mode).

This in turn triggers an incorrect overflow check in the decode part of test main(), which needed to check against allocated buffer size rather than BLK_SIZE.

This had no impact on the library, just the CLI test tool.