https://bugs.openldap.org/show_bug.cgi?id=10105
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- Seems to be coming from here: https://git.openldap.org/openldap/openldap/-/blob/master/libraries/liblber/d...
Either we need to nul-terminate the buffer or (re)allocate it as/when needed.