Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent extend_ref from making huge mallocs on very sparse data.
If we have a few reads with 64-bit positions widly far apart, we could attempt to allocate huge sums of memory. The embedded reference isn't even helpful in this scenario, so we can limit this allocation to something more respectable. Fixes samtools#1699
- Loading branch information