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

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