Skip to content

Commit f96afd9

Browse files
authored
Fix out-of-bounds accesses where the data should be zero anyway
1 parent 00740c0 commit f96afd9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

kernel/generic/ztrmm_utcopy_8.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,17 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
828828
b[ 0] = ONE;
829829
b[ 1] = ZERO;
830830
#else
831-
b[ 0] = *(a01 + 0);
832-
b[ 1] = *(a01 + 1);
831+
// out-of-bounds memory accesses, see issue 601
832+
// b[ 0] = *(a01 + 0);
833+
// b[ 1] = *(a01 + 1);
834+
b[0]=ZERO;
835+
b[1]=ZERO;
833836
#endif
834-
b[ 2] = *(a02 + 0);
835-
b[ 3] = *(a02 + 1);
837+
// out-of-bounds memory accesses, see issue 601
838+
// b[ 2] = *(a02 + 0);
839+
// b[ 3] = *(a02 + 1);
840+
b[2]=ZERO;
841+
b[3]=ZERO;
836842
b += 4;
837843
}
838844
posY += 2;

0 commit comments

Comments
 (0)