[Git][openldap/openldap][master] ITS#10488 Avoid out-of-bounds reads