samtools / htslib

C library for high-throughput sequencing data formats
Other
809 stars 446 forks source link

Fix buffer read-overrun in bam_plp_insertion_mod. #1520

Closed jkbonfield closed 1 year ago

jkbonfield commented 1 year ago

We already validate CIGAR length vs sequence, but if we have SEQ '*' then it passes those checks. Unfortunately this means we read beyond the end of sequence later on.