samtools / htslib

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

Add an fai_line_length function. #1516

Closed jkbonfield closed 1 year ago

jkbonfield commented 1 year ago

This exposes the input datas line wrap length (minus white-space / newlines).

Also fixed a SEGV in fai_retrieve given incorrect or malicious .fai files with a zero length "blen" figure.

daviesrob commented 1 year ago

Looks OK, although I spotted a couple of TODOs for later.