Fix for #1617
when bam write is attempted with 'u', the bgzf compression/decompression buffers are not allocated as it denotes uncompressed output. bgzf_flush, called at end, accesses the compression buffers and causes segfault in such case.
Binary data files are implicitly expected to be bgzf compressed and this 'u' flag is not valid / supported.
The fix made is to remove the 'u' flag on write of bam/bcf that the output is written as bgzf compressed with default compression level.
Fix for #1617 when bam write is attempted with 'u', the bgzf compression/decompression buffers are not allocated as it denotes uncompressed output. bgzf_flush, called at end, accesses the compression buffers and causes segfault in such case.
Binary data files are implicitly expected to be bgzf compressed and this 'u' flag is not valid / supported.
The fix made is to remove the 'u' flag on write of bam/bcf that the output is written as bgzf compressed with default compression level.