[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7868) Sock overlay segfault when reading sockname from configfile
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7868) Sock overlay segfault when reading sockname from configfile
- From: hyc@symas.com
- Date: Fri, 18 Jul 2014 19:04:23 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
orcus@pwr.wroc.pl wrote:
> Full_Name: Daniel Dobrijalowski
> Version: 2.4.39
> OS: 2.6.32-431.17.1.el6.centos.plus.x86_64
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (156.17.1.3)
>
>
> Hi,
Thanks for the report. This crash is now fixed in git master, please test.
>
> servers/slapd/config.c:
> line 477: if ( *(char **)ptr )
> ptr is NULL so it triggers SIGSEGV
> line: 461: ptr = c->bi->bi_private;
> bi_private is NULL
>
> My knowledge of openldap internals is to weak to find where and if bi_private
> should be initialized in this case.
>
> Steps to reproduce:
> After downloading openldap-2.4.39 and configuring it with options:
> ./configure --prefix=/usr/ --enable-slapd --enable-overlays --enable-bdb
> --enable-meta --enable-monitor --enable-sock --enable-crypt --enable-cleartext
> --enable-ldap --with-tls=openssl --sysconfdir=/etc
> I have added only slapo-sock related options at the end of default slapd.conf:
> overlay sock
> extensions peername
> socketpath "/tmp/ldap.sock"
> sockops bind
> sockresps result
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/