summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew <bradatajs@yahoo.com>2017-07-12 00:59:30 +0200
committerAndrew <bradatajs@yahoo.com>2017-07-12 00:59:30 +0200
commit529bfc36ec444223ba7b49717ef2d7fa12445159 (patch)
tree637c8b326b2ac8a31e8e472fa99b1b6eeb06aa8b
parentbfe1656b8b4e812786c2ac44b5b2272ef7e9f3eb (diff)
downloadopenblas-529bfc36ec444223ba7b49717ef2d7fa12445159.tar.gz
openblas-529bfc36ec444223ba7b49717ef2d7fa12445159.tar.bz2
openblas-529bfc36ec444223ba7b49717ef2d7fa12445159.zip
Fix write past fixed size buffer
-rw-r--r--driver/level2/gbmv_thread.c2
-rw-r--r--driver/level2/sbmv_thread.c2
-rw-r--r--driver/level2/spmv_thread.c2
-rw-r--r--driver/level2/tbmv_thread.c2
-rw-r--r--driver/level2/tpmv_thread.c2
-rw-r--r--driver/level2/trmv_thread.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/driver/level2/gbmv_thread.c b/driver/level2/gbmv_thread.c
index ef9d58d76..e86b565f8 100644
--- a/driver/level2/gbmv_thread.c
+++ b/driver/level2/gbmv_thread.c
@@ -177,7 +177,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG ku, BLASLONG kl, FLOAT *alpha, FLOAT
blas_arg_t args;
blas_queue_t queue[MAX_CPU_NUMBER];
- BLASLONG range_m[MAX_CPU_NUMBER];
+ BLASLONG range_m[MAX_CPU_NUMBER + 1];
BLASLONG range_n[MAX_CPU_NUMBER + 1];
BLASLONG width, i, num_cpu;
diff --git a/driver/level2/sbmv_thread.c b/driver/level2/sbmv_thread.c
index a0377d638..5718c0ec9 100644
--- a/driver/level2/sbmv_thread.c
+++ b/driver/level2/sbmv_thread.c
@@ -177,7 +177,7 @@ int CNAME(BLASLONG n, BLASLONG k, FLOAT *alpha, FLOAT *a, BLASLONG lda, FLOAT *x
#endif
blas_arg_t args;
- blas_queue_t queue[MAX_CPU_NUMBER];
+ blas_queue_t queue[MAX_CPU_NUMBER + 1];
BLASLONG range_m[MAX_CPU_NUMBER + 1];
BLASLONG range_n[MAX_CPU_NUMBER];
diff --git a/driver/level2/spmv_thread.c b/driver/level2/spmv_thread.c
index f8ae3cdcd..035300841 100644
--- a/driver/level2/spmv_thread.c
+++ b/driver/level2/spmv_thread.c
@@ -182,7 +182,7 @@ int CNAME(BLASLONG m, FLOAT *alpha, FLOAT *a, FLOAT *x, BLASLONG incx, FLOAT *y,
blas_arg_t args;
blas_queue_t queue[MAX_CPU_NUMBER];
BLASLONG range_m[MAX_CPU_NUMBER + 1];
- BLASLONG range_n[MAX_CPU_NUMBER];
+ BLASLONG range_n[MAX_CPU_NUMBER + 1];
BLASLONG width, i, num_cpu;
diff --git a/driver/level2/tbmv_thread.c b/driver/level2/tbmv_thread.c
index bbb1c50eb..226a922e9 100644
--- a/driver/level2/tbmv_thread.c
+++ b/driver/level2/tbmv_thread.c
@@ -221,7 +221,7 @@ int CNAME(BLASLONG n, BLASLONG k, FLOAT *a, BLASLONG lda, FLOAT *x, BLASLONG inc
blas_arg_t args;
blas_queue_t queue[MAX_CPU_NUMBER];
BLASLONG range_m[MAX_CPU_NUMBER + 1];
- BLASLONG range_n[MAX_CPU_NUMBER];
+ BLASLONG range_n[MAX_CPU_NUMBER + 1];
BLASLONG width, i, num_cpu;
diff --git a/driver/level2/tpmv_thread.c b/driver/level2/tpmv_thread.c
index 47dc1daf9..c91b52775 100644
--- a/driver/level2/tpmv_thread.c
+++ b/driver/level2/tpmv_thread.c
@@ -243,7 +243,7 @@ int CNAME(BLASLONG m, FLOAT *a, FLOAT *x, BLASLONG incx, FLOAT *buffer, int nthr
blas_arg_t args;
blas_queue_t queue[MAX_CPU_NUMBER];
BLASLONG range_m[MAX_CPU_NUMBER + 1];
- BLASLONG range_n[MAX_CPU_NUMBER];
+ BLASLONG range_n[MAX_CPU_NUMBER + 1];
BLASLONG width, i, num_cpu;
diff --git a/driver/level2/trmv_thread.c b/driver/level2/trmv_thread.c
index 42edb83cb..0a155366c 100644
--- a/driver/level2/trmv_thread.c
+++ b/driver/level2/trmv_thread.c
@@ -281,7 +281,7 @@ int CNAME(BLASLONG m, FLOAT *a, BLASLONG lda, FLOAT *x, BLASLONG incx, FLOAT *bu
blas_arg_t args;
blas_queue_t queue[MAX_CPU_NUMBER];
BLASLONG range_m[MAX_CPU_NUMBER + 1];
- BLASLONG range_n[MAX_CPU_NUMBER];
+ BLASLONG range_n[MAX_CPU_NUMBER + 1];
BLASLONG width, i, num_cpu;