https://bugs.openldap.org/show_bug.cgi?id=10162
--- Comment #3 from Howard Chu hyc@openldap.org --- Really, you should not allocate a new buffer unless you know the existing one is too small. That is, you should check if (row.value_len[i] > row.col_prec[i]).