Merge pull request #1319 from martin-frbg/issue601
Fix out-of-bounds memory accesses exposed by xccblat3 testcase
This commit is contained in:
commit
97ecd4996a
|
@ -823,7 +823,10 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
|
||||||
b[ 3] = *(a01 + 3);
|
b[ 3] = *(a01 + 3);
|
||||||
b += 4;
|
b += 4;
|
||||||
}
|
}
|
||||||
} else {
|
#if 1
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
} else {
|
||||||
#ifdef UNIT
|
#ifdef UNIT
|
||||||
b[ 0] = ONE;
|
b[ 0] = ONE;
|
||||||
b[ 1] = ZERO;
|
b[ 1] = ZERO;
|
||||||
|
@ -835,6 +838,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
|
||||||
b[ 3] = *(a02 + 1);
|
b[ 3] = *(a02 + 1);
|
||||||
b += 4;
|
b += 4;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
posY += 2;
|
posY += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue