broadinstitute/gamgee — pull request #129 by MauricioCarneiro (2014-07-24 20:15:02+00:00)
Title: VariantReader: fix deallocated memory access

converted string was going out of scope and getting destroyed, but its
internal buffer as returned by c_str() was continuing to be passed into
htslib's bcf_hdr_set_samples(), and eventually getting clobbered by new
memory allocations.

* add tests to for variants with missing genotypes

fixes #122

thanks @droazen and @lh3 for the help debugging this one.