Merge pull request #1319 from martin-frbg/issue601

Fix out-of-bounds memory accesses exposed by xccblat3 testcase
This commit is contained in:
Martin Kroeker 2017-10-08 23:31:06 +02:00 committed by GitHub
commit 97ecd4996a
1 changed files with 5 additions and 1 deletions

View File

@ -823,6 +823,9 @@ 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;
} }
#if 1
}
#else
} else { } else {
#ifdef UNIT #ifdef UNIT
b[ 0] = ONE; b[ 0] = ONE;
@ -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;
} }