fix: segfault when input line in LDIF file is indented incorrectly
Resolves: #716855
This commit is contained in:
parent
9925959a7d
commit
4098fcd663
19
openldap-segfault-ldif-indent.patch
Normal file
19
openldap-segfault-ldif-indent.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Segmentation fault of client tool when input LDIF line is splitted but not indented correctly.
|
||||
|
||||
Resolves: #716855
|
||||
Author: Howard Chu <hyc@openldap.org>
|
||||
Upstream: ITS#6978, git 4b057bc
|
||||
|
||||
diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c
|
||||
index 7cd9774..2d11045 100644
|
||||
--- a/clients/tools/ldapmodify.c
|
||||
+++ b/clients/tools/ldapmodify.c
|
||||
@@ -449,7 +449,7 @@ process_ldif_rec( char *rbuf, int linenum )
|
||||
fprintf( stderr, _("%s: invalid format (line %d) entry: \"%s\"\n"),
|
||||
prog, linenum+i, dn == NULL ? "" : dn );
|
||||
rc = LDAP_PARAM_ERROR;
|
||||
- break;
|
||||
+ goto leave;
|
||||
}
|
||||
freeval[i] = freev;
|
||||
|
@ -30,6 +30,7 @@ Patch7: openldap-userconfig-setgid.patch
|
||||
Patch8: openldap-nss-nofork.patch
|
||||
Patch9: openldap-nss-cacertdir-soft-error.patch
|
||||
Patch10: openldap-ldapexop-double-free.patch
|
||||
Patch11: openldap-segfault-ldif-indent.patch
|
||||
|
||||
# patches for the evolution library (see README.evolution)
|
||||
Patch200: openldap-evolution-ntlm.patch
|
||||
@ -132,6 +133,7 @@ pushd openldap-%{version}
|
||||
%patch8 -p1 -b .nss-nofork
|
||||
%patch9 -p1 -b .nss-cacertdir-soft-error
|
||||
%patch10 -p1 -b .ldapexop-double-free
|
||||
%patch11 -p1 -b .segfault-ldif-indent
|
||||
|
||||
cp %{_datadir}/libtool/config/config.{sub,guess} build/
|
||||
|
||||
@ -663,6 +665,8 @@ exit 0
|
||||
- fix: connection fails if TLS_CACERTDIR doesn't exist but TLS_REQCERT
|
||||
is set to 'never' (#716854)
|
||||
- fix: segmentation fault caused by double-free in ldapexop (#699683)
|
||||
- fix: segmentation fault of client tool when input line in LDIF file
|
||||
is splitted but indented incorrectly (#716855)
|
||||
|
||||
* Fri Mar 18 2011 Jan Vcelak <jvcelak@redhat.com> 2.4.24-2
|
||||
- new: system resource limiting for slapd using ulimit
|
||||
|
Loading…
Reference in New Issue
Block a user