Skip to content

Protect against high memory usage in malformed CRAM files. - #2070

Open
jkbonfield wants to merge 1 commit into
samtools:developfrom
jkbonfield:cram_limits
Open

Protect against high memory usage in malformed CRAM files.#2070
jkbonfield wants to merge 1 commit into
samtools:developfrom
jkbonfield:cram_limits

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

Replication the 10,000 block limit in slices. We already had it for allocating Content IDs (which is 1 per block), but oddly not for the block pointers themselves.

Also add a similar check for the container header too.

These won't limit valid or real-world CRAM usage.

Replication the 10,000 block limit in slices.  We already had it for
allocating Content IDs (which is 1 per block), but oddly not for the
block pointers themselves.

Also add a similar check for the container header too.

These won't limit valid or real-world CRAM usage.

Signed-off-by: James Bonfield <jkb@sanger.ac.uk>
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.

1 participant