[389-devel] Please review: [Bug 539618] Replication bulk import reports Invalid read/write

Noriko Hosoi nhosoi at redhat.com
Mon Feb 22 17:05:23 UTC 2010


Subject: Replication bulk import reports Invalid read/write

https://bugzilla.redhat.com/show_bug.cgi?id=539618

Files:
  ldap/servers/plugins/replication/repl5.h
  ldap/servers/plugins/replication/repl5_agmt.c
  ldap/servers/plugins/replication/repl5_protocol.c
  ldap/servers/slapd/back-ldbm/ldbm_modrdn.c

Descriptions: When a protocol is freed by prot_free, prot_close
is supposed to have been called to stop the main thread
prot_thread_main.  But, there was no mechanism for the freeing
thread whether the prot_thread_main has already quitted or not,
it could have released the Repl_Protocol even though it was
still being in use.  This fix is adding a checking method.

The same test revealed ldbm_back_modrdn had a chance to access
a field of NULL entry structure.

Proposed Fix:
  -->  (https://bugzilla.redhat.com/attachment.cgi?id=395511)
git patch file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20100222/128ea1c3/attachment.bin 


More information about the 389-devel mailing list