Closed daviesrob closed 3 years ago
could you rebase your branch (don't forget to reformat as well)?
I've pushed a squashed and rebased version for you. Let me know if you need anything else.
Updated. Hopefully I got everything.
Should be fixed now.
This makes
bamtools convert
able to correctly output (in SAM format)auxf#values.bam
(derived from auxf#values.sam) in the attached zip file:testbams.zip
It adds support for B array tags, and fixes a casting bug which caused
C
(unsigned byte) tags to be written incorrectly on platforms wherechar
is signed. x86 and x86-64 both have signed char by default.It also fixes buffer overrun bugs in the tag printing code that could be triggered by broken BAM files (see
broken1.bam
in the zip file), and adds checks to catch invalid tag types (broken2.bam
andbroken3.bam
).