]> git.donarmstrong.com Git - samtools.git/commit
Use bam_validate1() to detect garbage records in the event of a corrupt
authorOn behalf of John Marshall <lh3@sanger.ac.uk>
Fri, 24 Sep 2010 15:08:24 +0000 (15:08 +0000)
committerOn behalf of John Marshall <lh3@sanger.ac.uk>
Fri, 24 Sep 2010 15:08:24 +0000 (15:08 +0000)
commitccd987169ea085165fe156e1727fbb9a33057f7b
tree685d5352d4c9749227c48660f429130888146573
parent30f48c398267752648e19f521616789bcd5119a2
Use bam_validate1() to detect garbage records in the event of a corrupt
BAI index file that causes a bam_seek() to an invalid position.  At most
one record (namely, the bam_iter_read terminator) is tested per bam_fetch()
call, so the cost is insignificant in the normal case.
bam_index.c