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

Fix buffer (read) overrun in bcftools consensus. #1295

Closed
wants to merge 1 commit into from

Conversation

jkbonfield
Copy link
Contributor

For alleles with "END" the variant may be "imprecise" meaning that the
length of the REF allele differs to the END-POS+1 value.

We fill out consensus based on the length of REF and not rec->rlen.

An example file to trigger the issue is test/consensus.vcf.

For alleles with "END" the variant may be "imprecise" meaning that the
length of the REF allele differs to the END-POS+1 value.

We fill out consensus based on the length of REF and not rec->rlen.

An example file to trigger the issue is test/consensus.vcf.
@pd3
Copy link
Member

pd3 commented Sep 2, 2020

Thank you. Hopefully this is a better fix: dc26549.

@pd3 pd3 closed this Sep 2, 2020
pd3 added a commit that referenced this pull request Sep 3, 2020
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