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

SNAP crashes when it tries to generate a BAM file with > 2GB header #76

Open
bolosky opened this issue Aug 18, 2016 · 0 comments
Open
Assignees

Comments

@bolosky
Copy link
Contributor

bolosky commented Aug 18, 2016

The BAM spec has the header size as signed 32 bit int, so it's not possible to have one with more than 2GB of header (because you have so many contigs that it takes that much space). Since it's in the spec, there's nothing to be done about it. However, SNAP just shoves the size into the _int32 field, which can result in a negative offset and a crash (or, if it's big enough, with a positive-but-incorrect offset). It should detect this and exit with a helpful error message.

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

No branches or pull requests

2 participants