]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (stratis) remove usage of VLA
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Sep 2023 22:08:21 +0000 (00:08 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 13 Sep 2023 06:37:02 +0000 (08:37 +0200)
Variable-length-arrays are susceptible to security issues, avoid them.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/stratis.c

index 4cd94c087f1845af7b6c89059e1851a3856a9f2e..2651107d75c7c5917b8cf5e0f0fbeb40b98fa398 100644 (file)
@@ -22,7 +22,7 @@
 /* Macro to avoid error in struct declaration. */
 #define STRATIS_UUID_LEN 32
 /* Contains 4 hyphens and trailing null byte. */
-const int STRATIS_UUID_STR_LEN = 37;
+#define STRATIS_UUID_STR_LEN 37
 
 struct stratis_sb {
        uint32_t crc32;