Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
Update falcon.c
Browse files Browse the repository at this point in the history
In some case, if there is a big alignment gap > UINT8_MAX, without this line, it will segfault as we don't except gaps that larger.  This is safety guard.  The sequence alignment should not generate such gap before sending it to this function.
  • Loading branch information
pb-jchin committed Jan 3, 2017
1 parent 7a6ac0d commit 8c1a76a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/c/falcon.c
Expand Up @@ -147,6 +147,8 @@ align_tags_t * get_align_tags( char * aln_q_seq,
p_j = j;
p_jj = jj;
p_q_base = aln_q_seq[k];
} else {
break; // when there is a big alignment gap > UINT8_MAX, stop to extned the tagging string
}
}
// sentinal at the end
Expand Down

0 comments on commit 8c1a76a

Please sign in to comment.