samtools/htslib — pull request #123 by jkbonfield (2014-08-26 11:27:44+00:00)
Title: Fix buffer read-past-end when loading CRAM indices

Force nul termination of the kstr holding the CRAM index so that sscanf doesn't attempt to check beyond the bounds of the string memory.

On correctly formatted indices it has no need to do this (but apparently does), but the fix is necessary anyway in order to be robust on invalid indices.

Fixes samtools/samtools#288