Issue 3257 - ldapmodify crashes when controls are used
Summary: ldapmodify crashes when controls are used
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-25 21:04 UTC by ando@openldap.org
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ando@openldap.org 2004-07-25 21:04:48 UTC
Full_Name: Pierangelo Masarati
Version: HEAD
OS: Linux RH71/gcc 3.4.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.72.89.40)
Submitted by: ando


An uninitialized counter causes dereferencing an illegal array element.

A fix is coming. 

Comment 1 ando@openldap.org 2004-07-25 21:08:02 UTC
This is the patch.

diff -u -r1.157 ldapmodify.c
--- clients/tools/ldapmodify.c  5 Apr 2004 13:40:07 -0000       1.157
+++ clients/tools/ldapmodify.c  25 Jul 2004 21:02:58 -0000
@@ -316,7 +316,7 @@
                )
        {
                int err;
-               int i;
+               int i = 0;
                LDAPControl c[1];

 #ifdef LDAP_GROUP_TRANSACTION
Comment 2 ando@openldap.org 2004-07-25 21:39:48 UTC
changed notes
changed state Open to Release
moved from Incoming to Software Bugs
Comment 3 ando@openldap.org 2004-07-27 21:13:14 UTC
changed state Release to Closed
Comment 4 Howard Chu 2009-02-17 05:07:06 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 5 OpenLDAP project 2014-08-01 21:06:33 UTC
fixed in HEAD/RE22