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

Prevent segfault on empty tbi index #1845

Merged
merged 1 commit into from
Oct 8, 2024

Commits on Oct 3, 2024

  1. Prevent segfault on empty tbi index

    When an empty VCF file with a header but no data lines is indexed,
    tbx_seqnames() called via bcf_sr_add_reader() returns an empty list.
    Consequently, when bcf_sr_regions_next() is called and no in-memory
    regions are available, it attempts to read from a file which is
    not initialized.
    
    This fixes samtools/bcftools#2286
    pd3 committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    d36f1ae View commit details
    Browse the repository at this point in the history