Browse Source

Merge pull request #1319 from martin-frbg/issue601

Fix out-of-bounds memory accesses exposed by xccblat3 testcase
tags/v0.3.0
Martin Kroeker GitHub 8 years ago
parent
commit
97ecd4996a
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      kernel/generic/ztrmm_utcopy_8.c

+ 5
- 1
kernel/generic/ztrmm_utcopy_8.c View File

@@ -823,7 +823,10 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
b[ 3] = *(a01 + 3);
b += 4;
}
} else {
#if 1
}
#else
} else {
#ifdef UNIT
b[ 0] = ONE;
b[ 1] = ZERO;
@@ -835,6 +838,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
b[ 3] = *(a02 + 1);
b += 4;
}
#endif
posY += 2;
}



Loading…
Cancel
Save