Issue 148 - ud find seg fault
Summary: ud find seg fault
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: 1999-04-28 15:55 UTC by wes@umich.edu
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 wes@umich.edu 1999-04-28 15:55:52 UTC
Full_Name: Wesley Craig
Version: 1.2.1
OS: Solaris 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (141.211.164.29)


Reproduce on Solaris 2.6 with OpenLDAP 1.2.1:

% ud
LDAP UserDirectory 1.2.1-Release (Wed Apr 21 13:15:23 EDT 1999)

  Enter a command.  If you need help, type 'h' or '?' and hit RETURN.

* find
  Locate whose entry? 
Segmentation Fault (core dumped)
%

Fix is in clients/ud/main.c, line 230.  printf refers to "cp" which points
to second argument is there was one.  When there's not, cp is NULL, causing
some
printf's to core.  My fix, check for NULL, give message "Could not complete
find."
A better error message would get what the user typed at the "Locate whose
entry?"
prompt.  This is hard, since it's not local to do_command().

:wes
Comment 1 Kurt Zeilenga 1999-04-28 17:41:48 UTC
Thanks!  A quick fix has been committed to -devel.  Will
be integrated into release engineering for 1.2.2.

Kurt

At 03:55 PM 4/28/99 GMT, wes@umich.edu wrote:
>Full_Name: Wesley Craig
>Version: 1.2.1
>OS: Solaris 2.6
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (141.211.164.29)
>
>
>Reproduce on Solaris 2.6 with OpenLDAP 1.2.1:
>
>% ud
>LDAP UserDirectory 1.2.1-Release (Wed Apr 21 13:15:23 EDT 1999)
>
>  Enter a command.  If you need help, type 'h' or '?' and hit RETURN.
>
>* find
>  Locate whose entry? 
>Segmentation Fault (core dumped)
>%
>
>Fix is in clients/ud/main.c, line 230.  printf refers to "cp" which points
>to second argument is there was one.  When there's not, cp is NULL, causing
>some
>printf's to core.  My fix, check for NULL, give message "Could not complete
>find."
>A better error message would get what the user typed at the "Locate whose
>entry?"
>prompt.  This is hard, since it's not local to do_command().
>
>:wes
>
>
>
Comment 2 Kurt Zeilenga 1999-04-28 17:54:18 UTC
changed notes
changed state Open to Test
Comment 3 Kurt Zeilenga 1999-04-28 17:54:31 UTC
moved from Incoming to Software Bugs
Comment 4 Kurt Zeilenga 1999-04-29 00:17:14 UTC
changed state Test to Release
Comment 5 Kurt Zeilenga 1999-06-01 18:00:43 UTC
changed state Release to Closed
Comment 6 OpenLDAP project 2014-08-01 21:06:52 UTC
Applied fix to -devel and releng-1.2