Fix out-of-bounds accesses where the data should be zero anyway
This commit is contained in:
parent
00740c0e34
commit
f96afd94b0
|
@ -828,11 +828,17 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
|
||||||
b[ 0] = ONE;
|
b[ 0] = ONE;
|
||||||
b[ 1] = ZERO;
|
b[ 1] = ZERO;
|
||||||
#else
|
#else
|
||||||
b[ 0] = *(a01 + 0);
|
// out-of-bounds memory accesses, see issue 601
|
||||||
b[ 1] = *(a01 + 1);
|
// b[ 0] = *(a01 + 0);
|
||||||
|
// b[ 1] = *(a01 + 1);
|
||||||
|
b[0]=ZERO;
|
||||||
|
b[1]=ZERO;
|
||||||
#endif
|
#endif
|
||||||
b[ 2] = *(a02 + 0);
|
// out-of-bounds memory accesses, see issue 601
|
||||||
b[ 3] = *(a02 + 1);
|
// b[ 2] = *(a02 + 0);
|
||||||
|
// b[ 3] = *(a02 + 1);
|
||||||
|
b[2]=ZERO;
|
||||||
|
b[3]=ZERO;
|
||||||
b += 4;
|
b += 4;
|
||||||
}
|
}
|
||||||
posY += 2;
|
posY += 2;
|
||||||
|
|
Loading…
Reference in New Issue