Blame SOURCES/0026-acl-util-avoid-freeing-uninitialized-pointer.patch
|
|
923a60 |
From 86592a27154d8da0e695304a75ae1458c574c962 Mon Sep 17 00:00:00 2001
|
|
|
923a60 |
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
|
|
|
923a60 |
Date: Tue, 24 Feb 2015 20:40:07 +0100
|
|
|
923a60 |
Subject: [PATCH] acl-util: avoid freeing uninitialized pointer
|
|
|
923a60 |
|
|
|
923a60 |
CID#1271344/1271345
|
|
|
923a60 |
|
|
|
923a60 |
(cherry picked from commit 76dcbc4992e895a377aad26f8c4a0dcd71002396)
|
|
|
923a60 |
---
|
|
|
923a60 |
src/shared/acl-util.c | 4 ++--
|
|
|
923a60 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
923a60 |
|
|
|
923a60 |
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c
|
|
|
923a60 |
index cbe09d7aba..e67e9acb6a 100644
|
|
|
923a60 |
--- a/src/shared/acl-util.c
|
|
|
923a60 |
+++ b/src/shared/acl-util.c
|
|
|
923a60 |
@@ -302,7 +302,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) {
|
|
|
923a60 |
/* can have only one of those */
|
|
|
923a60 |
return true;
|
|
|
923a60 |
case ACL_USER: {
|
|
|
923a60 |
- _cleanup_(acl_free_uid_tpp) uid_t *uid_a, *uid_b;
|
|
|
923a60 |
+ _cleanup_(acl_free_uid_tpp) uid_t *uid_a = NULL, *uid_b = NULL;
|
|
|
923a60 |
|
|
|
923a60 |
uid_a = acl_get_qualifier(a);
|
|
|
923a60 |
if (!uid_a)
|
|
|
923a60 |
@@ -315,7 +315,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) {
|
|
|
923a60 |
return *uid_a == *uid_b;
|
|
|
923a60 |
}
|
|
|
923a60 |
case ACL_GROUP: {
|
|
|
923a60 |
- _cleanup_(acl_free_gid_tpp) gid_t *gid_a, *gid_b;
|
|
|
923a60 |
+ _cleanup_(acl_free_gid_tpp) gid_t *gid_a = NULL, *gid_b = NULL;
|
|
|
923a60 |
|
|
|
923a60 |
gid_a = acl_get_qualifier(a);
|
|
|
923a60 |
if (!gid_a)
|