https://fedorahosted.org/389/ticket/47677

https://fedorahosted.org/389/attachment/ticket/47677/0001-Ticket-47677-Size-returned-by-slapi_entry_size-is-no.2.patch

 Description: slapi_entry_size calculating the entry size had issues.
 . To calculate the Slapi_DN size, local function slapi_dn_size was used.
   slapi_dn_size internally calls slapi_sdn_get_dn and slapi_sdn_get_ndn.
   The calls generates normalized dn and case lowered normalized dn from
   raw dn udn if the normalized dn are not stored in Slapi_DN yet.  I.e.,
   the get size function allocates extra memory for the normalized dn.
   Local slapi_dn_size also failed to count the raw dn length.  This patch
   replaces slapi_dn_size with (slapi_sdn_get_size - sizeof(Slapi_DN)).
 . slapi_entry_size counted Slapi_RDN twice.
 . slapi_entry_size did not count the size of e_virtual_lock, e_aux_attrs
   and e_extension.


--
389-devel mailing list
389-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-devel

Reply via email to