fix groupmems segmentation fault (#430813)
This commit is contained in:
parent
2c3e028c8e
commit
37c1b28cf9
2 changed files with 18 additions and 1 deletions
12
shadow-4.1.0-segfault.patch
Normal file
12
shadow-4.1.0-segfault.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -up shadow-4.1.0/src/groupmems.c.segfault shadow-4.1.0/src/groupmems.c
|
||||||
|
--- shadow-4.1.0/src/groupmems.c.segfault 2008-02-19 12:39:23.000000000 +0100
|
||||||
|
+++ shadow-4.1.0/src/groupmems.c 2008-02-19 12:55:06.000000000 +0100
|
||||||
|
@@ -106,7 +106,7 @@ static void addtogroup (char *user, char
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- members = (char **) realloc (members, sizeof (char *) * i);
|
||||||
|
+ members = (char **) realloc (members, sizeof (char *) * (i + 2));
|
||||||
|
members[i] = user;
|
||||||
|
members[i + 1] = NULL;
|
||||||
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
Summary: Utilities for managing accounts and shadow password files
|
Summary: Utilities for managing accounts and shadow password files
|
||||||
Name: shadow-utils
|
Name: shadow-utils
|
||||||
Version: 4.1.0
|
Version: 4.1.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://pkg-shadow.alioth.debian.org/
|
URL: http://pkg-shadow.alioth.debian.org/
|
||||||
Source0: ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-%{version}.tar.bz2
|
Source0: ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-%{version}.tar.bz2
|
||||||
|
@ -21,6 +21,7 @@ Patch5: shadow-4.0.18.1-sysAccount.patch
|
||||||
Patch6: shadow-4.0.18.1-findNewUidOnce.patch
|
Patch6: shadow-4.0.18.1-findNewUidOnce.patch
|
||||||
Patch7: shadow-4.0.18.1-mtime.patch
|
Patch7: shadow-4.0.18.1-mtime.patch
|
||||||
Patch8: shadow-4.1.0-audit-newgrp.patch
|
Patch8: shadow-4.1.0-audit-newgrp.patch
|
||||||
|
Patch9: shadow-4.1.0-segfault.patch
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
@ -54,6 +55,7 @@ are used for managing group accounts.
|
||||||
%patch6 -p1 -b .findNewUidOnce
|
%patch6 -p1 -b .findNewUidOnce
|
||||||
%patch7 -p1 -b .mtime
|
%patch7 -p1 -b .mtime
|
||||||
%patch8 -p1 -b .auditNewgrp
|
%patch8 -p1 -b .auditNewgrp
|
||||||
|
%patch9 -p1 -b .segfault
|
||||||
|
|
||||||
rm po/*.gmo
|
rm po/*.gmo
|
||||||
rm po/stamp-po
|
rm po/stamp-po
|
||||||
|
@ -193,6 +195,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/man8/vigr.8*
|
%{_mandir}/man8/vigr.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 19 2008 Peter Vrabec <pvrabec@redhat.com> 2:4.1.0-3
|
||||||
|
- fix groupmems segmentation fault (#430813)
|
||||||
|
|
||||||
* Wed Feb 13 2008 Peter Vrabec <pvrabec@redhat.com> 2:4.1.0-2
|
* Wed Feb 13 2008 Peter Vrabec <pvrabec@redhat.com> 2:4.1.0-2
|
||||||
- fix newgrp audit event
|
- fix newgrp audit event
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue