Skip to content

Commit f94da5a

Browse files
committed
Bug fixed CRAM decoding for CRAM 2.1.
Commit cf68cd3 moved the crc checking to the uncompress function so it only checked validity of the data used (incase we're decoding only some fields) and so that CRC checking is part of the multi-threaded code. Unfortunately this had the side effect of attempting to validate CRCs on older file format versions where they were not present.
1 parent a87caee commit f94da5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

io_lib/cram_io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,8 @@ cram_block *cram_read_block(cram_fd *fd) {
15321532
// Check later, if and only if we do decompression of this block
15331533
b->crc32_checked = fd->ignore_md5;
15341534
b->crc_part = crc;
1535+
} else {
1536+
b->crc32_checked = 1; // CRC not present
15351537
}
15361538

15371539
b->orig_method = b->method;

0 commit comments

Comments
 (0)