Skip to content

Commit

Permalink
Fix write past fixed size buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
brada4 committed Jul 11, 2017
1 parent bfe1656 commit 529bfc3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion driver/level2/gbmv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion driver/level2/sbmv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
2 changes: 1 addition & 1 deletion driver/level2/spmv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion driver/level2/tbmv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion driver/level2/tpmv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion driver/level2/trmv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 529bfc3

Please sign in to comment.