Skip to content

Commit 9d92f52

Browse files
authored
Comment out a code block that performs out-of-bounds memory accesses
...and does not appear to be needed even when it stays within the bounds of the array
1 parent f96afd9 commit 9d92f52

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

kernel/generic/ztrmm_utcopy_8.c

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -823,24 +823,22 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
823823
b[ 3] = *(a01 + 3);
824824
b += 4;
825825
}
826-
} else {
826+
#if 1
827+
}
828+
#else
829+
} else {
827830
#ifdef UNIT
828831
b[ 0] = ONE;
829832
b[ 1] = ZERO;
830833
#else
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;
834+
b[ 0] = *(a01 + 0);
835+
b[ 1] = *(a01 + 1);
836836
#endif
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;
837+
b[ 2] = *(a02 + 0);
838+
b[ 3] = *(a02 + 1);
842839
b += 4;
843840
}
841+
#endif
844842
posY += 2;
845843
}
846844

0 commit comments

Comments
 (0)