[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapd,back-perl crasher



Hi,


slapd crashes when I send the following LDIF


---------------
dn: cn=jdoe, dc=example, dc=com
changetype: modify
replace: userpassword
userpassword: anotherpassword
---------------


The crash occurs because a NULL pointer is being pushed on the perl
argument stack in servers/slapd/back-perl/modify.c

...
XPUSHs(sv_2mortal(newSVpv( mods->sm_type.bv_val, 0 )));
...

At this point mods->sm_type.bv_val is a NULL pointer.


This occurs when some type of hidden timestamp attribute is being pushed
on the perl function arguement stack.

mods->sm_bvalues.bv_val is "2002042418:30:14Z#0x0001#0#0000"
but mods->sm_type.bv_val is NULL.


I'm guessing that this hidden attribute should be given a name before
being pushed on the perl function arguement stack?

--Kervin