samtools / htslib

C library for high-throughput sequencing data formats
Other
785 stars 447 forks source link

Fix a containment bug in cram_index_last. #1640

Closed jkbonfield closed 1 year ago

jkbonfield commented 1 year ago

The index is a loaded into a nested containment list, so the last entry in the index array is not necessarily the last slice, as the last slice may be entirely contained within a previous one.

Fixes #1639