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

Permit BAM headers between 2GB and 4GB in size once more. #1421

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

jkbonfield
Copy link
Contributor

This isn't permitted by the BAM specification, but was accepted by earlier htslib release. 62f9909 added code to check the maximum length. This now has a warning at 2GB and the hard-failure at 4GB.

Fixes #1420. Fixes samtools/samtools#1613

The problem still exists in CRAM, which also has signedness problems. It's not as trivial there as simply removing the check. (It will need CRAM v4.0 being adopted.)

This isn't permitted by the BAM specification, but was accepted by
earlier htslib release.  62f9909 added code to check the maximum
length.  This now has a warning at 2GB and the hard-failure at 4GB.

Fixes samtools#1420.  Fixes samtools/samtools#1613
@whitwham whitwham merged commit 2eddc21 into samtools:develop Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants