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

Fix cram_dependent_data_series when FN is used. #1314

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cram/cram_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,13 @@ int cram_dependent_data_series(cram_fd *fd,
s->data_series |= CRAM_CF | CRAM_NF;
if (s->data_series & (CRAM_BA | CRAM_QS | CRAM_BB | CRAM_QQ))
s->data_series |= CRAM_BF | CRAM_CF | CRAM_RL;
if (s->data_series & CRAM_FN) {
// The CRAM_FN loop checks for reference length boundaries,
// which needs a working seq_pos. Some fields are fixed size
// irrespective of if we decode (BS), but others need to know
// the size of the string fetched back (SC, IN, BB).
s->data_series |= CRAM_SC | CRAM_IN | CRAM_BB;
}

orig_ds = s->data_series;

Expand Down