samtools/samtools — pull request #6 by peterjc (2012-04-02 10:53:48+00:00)
Title: More changes for 'samtools depad'

Hi Heng,

I've worked on the handling of superfluous CIGAR P operators
in 'samtools depad', and found and fixed a buffer overflow when
CIGAR D operators are used.

I also realized you were right originally not to accept CIGAR P
operators in the input padded reference BAM file (much like it
does not make sense to use CIGAR I in this case either), and
restored that check.

Peter