From: Brian Behlendorf Date: Wed, 18 Feb 2009 00:24:26 +0000 (-0800) Subject: Coverity 9641: Buffer Size X-Git-Tag: spl-0.4.3~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=014b1d6f54dc7236a7572533f9e72ec459f1abd4;p=spl 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. --- diff --git a/include/splat-ctl.h b/include/splat-ctl.h index d5ce6ab..82d5c0b 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 {