https://bugs.openldap.org/show_bug.cgi?id=9920
--- Comment #25 from Howard Chu hyc@openldap.org --- (In reply to kero from comment #15)
Created attachment 1028 [details] A reproducer for the encryption bug with large entries
This is a reproducer for the ITS#9920 encryption issue.
The database becomes corrupted when you insert a lot (64k) entries with keys with a length >= 19, define an auth data size >= 8, and values of size [1;150] bytes.
Hi, just starting to look at this. I note that you modified mtest_enc.c which does not use authenticated encryption. As such, you've told it to reserve 16 bytes of space that will always be uninitialized since the encryption function never touches it. mtest_enc2.c is the one that tests authenticated encryption.