Blame SOURCES/e2fsprogs-1.45.6-ss_create_invocation-fix-potential-unititalized-refe.patch

f239de
From 1f70da1ff20ed99f2a3ac26a61a6492279bd44de Mon Sep 17 00:00:00 2001
f239de
From: Theodore Ts'o <tytso@mit.edu>
f239de
Date: Tue, 3 Aug 2021 11:03:34 -0400
f239de
Subject: [PATCH 38/46] ss_create_invocation: fix potential unititalized
f239de
 reference in error path
f239de
Content-Type: text/plain
f239de
f239de
Fixes: eccdde1ff381 ("ss_create_invocation: fix error handling when ...")
f239de
Addresses-Coverity-Bug: 1489771
f239de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
f239de
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
f239de
---
f239de
 lib/ss/invocation.c | 1 +
f239de
 1 file changed, 1 insertion(+)
f239de
f239de
diff --git a/lib/ss/invocation.c b/lib/ss/invocation.c
f239de
index bf5ea0ce..7d7458a7 100644
f239de
--- a/lib/ss/invocation.c
f239de
+++ b/lib/ss/invocation.c
f239de
@@ -36,6 +36,7 @@ int ss_create_invocation(const char *subsystem_name, const char *version_string,
f239de
 	new_table = (ss_data *) malloc(sizeof(ss_data));
f239de
 	if (!new_table)
f239de
 		goto out;
f239de
+	memset(new_table, 0, sizeof(ss_data));
f239de
 
f239de
 	if (table == (ss_data **) NULL) {
f239de
 		table = (ss_data **) malloc(2 * size);
f239de
-- 
f239de
2.35.1
f239de