From: Thomas Weißschuh Date: Tue, 12 Sep 2023 22:08:21 +0000 (+0200) Subject: libblkid: (stratis) remove usage of VLA X-Git-Tag: v2.40-rc1~246^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=348257a63c8960a375e0276c4577fdf06678ed86;p=thirdparty%2Futil-linux.git libblkid: (stratis) remove usage of VLA Variable-length-arrays are susceptible to security issues, avoid them. Signed-off-by: Thomas Weißschuh --- diff --git a/libblkid/src/superblocks/stratis.c b/libblkid/src/superblocks/stratis.c index 4cd94c087f..2651107d75 100644 --- a/libblkid/src/superblocks/stratis.c +++ b/libblkid/src/superblocks/stratis.c @@ -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;