Commit c814d39
committed
Reset variant types after updating alleles
Variant type calls produced by bcf_set_variant_types() may be
stale after updating alleles via bcf_update_alleles() or
bcf_update_alleles_str(), so set d.var_type to -1 to force
a recalculation.
Fixes an out of bounds access in bcftools consensus that occurred
when it added a new allele to a record.1 parent 2578c89 commit c814d39
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5495 | 5495 | | |
5496 | 5496 | | |
5497 | 5497 | | |
| 5498 | + | |
5498 | 5499 | | |
5499 | 5500 | | |
5500 | 5501 | | |
| |||
0 commit comments