[sssd] Fix uninitialized value bug causing crashes throughout the code

Stephen Gallagher sgallagh at fedoraproject.org
Wed Mar 21 11:37:12 UTC 2012


commit af80d0ea8a1e22c3161b011f1db391f14b4886af
Author: Stephen Gallagher <sgallagh at redhat.com>
Date:   Wed Mar 21 07:35:03 2012 -0400

    Fix uninitialized value bug causing crashes throughout the code
    
    - Resolves: rhbz#804783 - [abrt] Segfault during LDAP 'services' lookup

 0001-Fix-uninitialized-variable.patch |   25 +++++++++++++++++++++++++
 sssd.spec                             |    8 +++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/0001-Fix-uninitialized-variable.patch b/0001-Fix-uninitialized-variable.patch
new file mode 100644
index 0000000..5cd52ce
--- /dev/null
+++ b/0001-Fix-uninitialized-variable.patch
@@ -0,0 +1,25 @@
+From b3671769f57521c4eeef850a4963e320f170082c Mon Sep 17 00:00:00 2001
+From: Jakub Hrozek <jhrozek at redhat.com>
+Date: Fri, 16 Mar 2012 09:36:38 -0400
+Subject: [PATCH] Fix uninitialized variable
+
+---
+ src/providers/ldap/ldap_common.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
+index d5dc4a0af5590bbe6f8d474095c6094582deb542..949244183c0db7b8e576c7b3c5e63e2bb35cb39f 100644
+--- a/src/providers/ldap/ldap_common.c
++++ b/src/providers/ldap/ldap_common.c
+@@ -1598,7 +1598,7 @@ errno_t list_missing_attrs(TALLOC_CTX *mem_ctx,
+     }
+ 
+     if (k == 0) {
+-        *missing = NULL;
++        *missing_attrs = NULL;
+     } else {
+         /* Terminate the list */
+         missing[k] = NULL;
+-- 
+1.7.7.6
+
diff --git a/sssd.spec b/sssd.spec
index 2dd5fd4..3291769 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -16,7 +16,7 @@
 
 Name: sssd
 Version: 1.8.1
-Release: 7%{?dist}
+Release: 8%{?dist}
 Group: Applications/System
 Summary: System Security Services Daemon
 License: GPLv3+
@@ -26,6 +26,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 ### Patches ###
 
+Patch0001: 0001-Fix-uninitialized-variable.patch
+
 Patch1001: FED01-Change-Kerberos-credential-cache-default-loca.patch
 
 ### Dependencies ###
@@ -440,6 +442,10 @@ fi
 %postun -n libipa_hbac -p /sbin/ldconfig
 
 %changelog
+* Wed Mar 21 2012 Stephen Gallagher <sgallagh at redhat.com> - 1.8.1-8
+- Fix uninitialized value bug causing crashes throughout the code
+- Resolves: rhbz#804783 - [abrt] Segfault during LDAP 'services' lookup
+
 * Mon Mar 12 2012 Stephen Gallagher <sgallagh at redhat.com> - 1.8.1-7
 - New upstream release 1.8.1
 - Resolve issue where we could enter an infinite loop trying to connect to an


More information about the scm-commits mailing list