Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ba671b34 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

starpu: limit size in scanf

parent 4770ef0e
No related branches found
No related tags found
1 merge request!374Fix bugs reported by Sonarqube
......@@ -45,7 +45,7 @@ void chameleon_starpu_parallel_worker_init( starpu_sched_opt_t *sched_opt )
char level[256];
int argc = strchr( env_pw_level, ':') == NULL ? 1 : 2;
int match = sscanf( env_pw_level, "%[^:]:%d", level, &pw_level_number );
int match = sscanf( env_pw_level, "%255[^:]:%d", level, &pw_level_number );
#if !defined(CHAMELEON_KERNELS_MT)
chameleon_warning("chameleon_starpu_parallel_worker_init()", "CHAMELEON has been compiled with multi-threaded kernels disabled (-DCHAMELEON_KERNELS_MT=OFF). This won't break the execution, but you may not obtain the performance gain expected. It is recommended to recompile with -DCHAMELEON_KERNELS_MT=ON.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment