samtools/htslib — pull request #71 by jkbonfield (2014-02-27 16:33:33+00:00)
Title: CRAM reference loading bug fix

Fixed a bug loading in fasta files consisting of all sequence on a single line and in lowercase. The uppercasing code was only being called during the loop to strip out newlines.

I am aware the code is perhaps a bit "hopeful" still in that it doesn't explicitly check the fasta file contains sequence instead of punctuation marks, but frankly garbage in garbage out. It won't scribble over memory or do something foul.