Hi!

I just found a bug in the slurm that creates a buffer overflow if you run 'scontrol show config'.

Patch attached to fix the problem.

/Magnus

--
Magnus Jonsson, Developer, HPC2N, UmeƄ Universitet
diff --git a/src/common/slurm_protocol_defs.c b/src/common/slurm_protocol_defs.c
index adf48e5..45ed46c 100644
--- a/src/common/slurm_protocol_defs.c
+++ b/src/common/slurm_protocol_defs.c
@@ -1163,7 +1163,7 @@ extern uint16_t log_string2num(char *name)
  * NOTE: Not reentrant */
 extern char *sched_param_type_string(uint16_t select_type_param)
 {
-	static char select_str[128];
+	static char select_str[64];
 
 	select_str[0] = '\0';
 	if ((select_type_param & CR_CPU) &&

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to