Skip to content

Remove an infinite loop in bam_mods_at_qpos(). - #2068

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

Remove an infinite loop in bam_mods_at_qpos().#2068
jkbonfield wants to merge 1 commit into
samtools:developfrom
jkbonfield:sam_mods_infinite_loop

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

If we have SEQ * and QUAL * then this call could loop indefinitely due to the early exit strategy in bam_mods_at_next_pos not incrementing state->seq_pos.

If we have SEQ `*` and QUAL `*` then this call could loop indefinitely
due to the early exit strategy in bam_mods_at_next_pos not
incrementing state->seq_pos.

Signed-off-by: James Bonfield <jkb@sanger.ac.uk>
@daviesrob daviesrob self-assigned this Aug 13, 2026
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.

2 participants