From 014b1d6f54dc7236a7572533f9e72ec459f1abd4 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 17 Feb 2009 16:24:26 -0800 Subject: [PATCH] Coverity 9641: Buffer Size When SPLAT_TEST_INIT() initialized SPLAT_KMEM_TEST11_NAME the short short test name overran the static length buffer of SPLAT_NAME_SIZE. This was fixed by increasing the buffer length from 16 to 20 bytes. --- include/splat-ctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/splat-ctl.h b/include/splat-ctl.h index d5ce6ab9ae..82d5c0b506 100644 --- a/include/splat-ctl.h +++ b/include/splat-ctl.h @@ -36,7 +36,7 @@ #define SPLAT_NAME "splatctl" #define SPLAT_DEV "/dev/splatctl" -#define SPLAT_NAME_SIZE 16 +#define SPLAT_NAME_SIZE 20 #define SPLAT_DESC_SIZE 60 typedef struct splat_user {