Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset variant types after updating alleles #1883

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

daviesrob
Copy link
Member

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.

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.
@daviesrob daviesrob merged commit c814d39 into samtools:develop Jan 30, 2025
9 checks passed
@daviesrob daviesrob deleted the var-type-reset branch January 30, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants