Skip to content

Commit

Permalink
bugfix: long-existing out-of-boundary bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Mar 19, 2012
1 parent 91a4a0c commit a471f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwase.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ char *bwa_cal_md1(int n_cigar, bwa_cigar_t *cigar, int len, bwtint_t pos, ubyte_
}
}
} else { // no gaps
for (z = u = 0; z < (bwtint_t)len; ++z) {
for (z = u = 0; z < (bwtint_t)len && x+z < l_pac; ++z) {
c = pacseq[(x+z)>>2] >> ((~(x+z)&3)<<1) & 3;
if (c > 3 || seq[y+z] > 3 || c != seq[y+z]) {
ksprintf(str, "%d", u);
Expand Down

0 comments on commit a471f19

Please sign in to comment.