Blame SOURCES/0002-fabrics-fix-a-buffer-overrun.patch

955b2d
From ff8f9b6f59b574fda24a071fb0af4381c0cc6d9f Mon Sep 17 00:00:00 2001
955b2d
From: Maurizio Lombardi <mlombard@redhat.com>
955b2d
Date: Thu, 9 Dec 2021 12:21:51 +0100
955b2d
Subject: [PATCH 1/6] fabrics: fix a buffer overrun
955b2d
955b2d
the uuid buffer size must be at least 37 bytes to avoid
955b2d
corrupting the memory
955b2d
955b2d
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
955b2d
---
955b2d
 fabrics.c | 2 +-
955b2d
 1 file changed, 1 insertion(+), 1 deletion(-)
955b2d
955b2d
diff --git a/fabrics.c b/fabrics.c
955b2d
index adca89b..0766729 100644
955b2d
--- a/fabrics.c
955b2d
+++ b/fabrics.c
955b2d
@@ -883,7 +883,7 @@ static char *hostnqn_generate_systemd(void)
955b2d
 
955b2d
 static char *hostnqn_read_dmi(void)
955b2d
 {
955b2d
-	char uuid[16];
955b2d
+	char uuid[37];
955b2d
 	char *ret = NULL;
955b2d
 
955b2d
 	if (uuid_from_dmi(uuid) < 0)
955b2d
-- 
955b2d
2.27.0
955b2d