[Date Prev][Date Next]
Re: dnNormalize2 failed assertion (sasl_regexp?)
> * Pierangelo Masarati (email@example.com) wrote:
>> The assert is there to trap situations like this. If you don't
> Yet everything seems to work fine without it, that doesn't make a whole
> lot of sense to me.
>> like it, compile with -DNDEBUG. The strlen MUST work because
>> all the dn handling does terminate strings with '\0', so the assert
>> MUST succeed or something mucked with the DN in an erroneous manner
>> (as in this case: who put the '\b' there?). I suggest you let alone
>> the asserts and try to find out who's playing with the DN strings.
> I believe that something just isn't putting the NULL there, and I
> suspect it may be SASL. I havn't got a debugging version of SASL around
> atm unfortunately so I'm not sure. A backtrace looks like this though:
You may want to try HEAD code; I committed an UNTESTED fix
to slap_sasl_getdn() that ensures the DN is well formatted.