Browse Source

fix #4101, bounds issue in goto_set_num_threads on Windows

pull/4102/head
Mark Seminatore 2 years ago
parent
commit
e147dbbc7d
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      CONTRIBUTORS.md
  2. +1
    -1
      driver/others/blas_server_win32.c

+ 4
- 0
CONTRIBUTORS.md View File

@@ -216,3 +216,7 @@ In chronological order:
* Pablo Romero <https://github.com/pablorcum> * Pablo Romero <https://github.com/pablorcum>
* [2022-08] Fix building from sources for QNX * [2022-08] Fix building from sources for QNX

* Mark Seminatore <https://github.com/mseminatore>
* [2023] Fix bounds issue in goto_set_num_threads

+ 1
- 1
driver/others/blas_server_win32.c View File

@@ -568,7 +568,7 @@ void goto_set_num_threads(int num_threads)
blas_server_avail = 1; blas_server_avail = 1;
} }


for(i = blas_num_threads - 1; i < num_threads - 1; i++){
for(i = blas_num_threads; i < num_threads - 1; i++){


blas_threads[i] = CreateThread(NULL, 0, blas_threads[i] = CreateThread(NULL, 0,
blas_thread_server, (void *)i, blas_thread_server, (void *)i,


Loading…
Cancel
Save