On Fri, Sep 07, 2018 at 04:18:55PM -0400, Tom Lane wrote: > I had been studying that when the report first arrived. I'm not really > happy with the coding in pg_saslprep(): it leaves garbage in its output > parameter in some code paths, and I think it leaks memory in others.
Agreed. Do you want to give it a go? I can see some of those code paths? Likely you spotted more.
> But I couldn't see a path that would lead to the observed failure.