[Date Prev][Date Next]
Re: (ITS#6946) ldapexop: ber_free_buf: Assertion failed
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#6946) ldapexop: ber_free_buf: Assertion failed
- From: firstname.lastname@example.org
- Date: Sat, 4 Jun 2011 02:33:01 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> Full_Name: Jan Vcelak
> Version: 2.4.25
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/jvcelak-110519-ldapexop-double-free.patch
> Submission from: (NULL) (184.108.40.206)
> A problem with crashing ldapexop was reported to our bugzilla. All versions
> since 2.4.24 are affected. It seems that the bug was introduced by following
> change in ldapexop.c.
> Easy to reproduce. With clean configuration run:
> $ ldapexop -H ldap:// -x whoami
> ldapexop: ../../../libraries/liblber/io.c:186: ber_free_buf: Assertion
> `((ber)->ber_opts.lbo_valid==0x2)' failed.
> Complete steps to reproduce in Fedora are specified in the original bugreport:
> I think it is cause by double freeing the result. I am attaching a proposed
> patch. Please, review my change.
> Thank you.
Thanks for the report, patch applied to git.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/