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

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