]> granicus.if.org Git - zfs/commitdiff
Coverity 9641: Buffer Size
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Feb 2009 00:24:26 +0000 (16:24 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Feb 2009 00:24:26 +0000 (16:24 -0800)
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

index d5ce6ab9ae8fa2676449390581d6511e0d18761f..82d5c0b506f46d248e9e37dd9e22247b69d4788d 100644 (file)
@@ -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 {