Skip to content

Commit 97ecd49

Browse files
authored
Merge pull request #1319 from martin-frbg/issue601
Fix out-of-bounds memory accesses exposed by xccblat3 testcase
2 parents 1eb43cc + 9d92f52 commit 97ecd49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kernel/generic/ztrmm_utcopy_8.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,10 @@ 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;
@@ -835,6 +838,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
835838
b[ 3] = *(a02 + 1);
836839
b += 4;
837840
}
841+
#endif
838842
posY += 2;
839843
}
840844

0 commit comments

Comments
 (0)