David Rowley <dgrowleyml@gmail.com> writes:
> It seems the buffer created in pset_quoted_string is just 1 char too small.
Yeah, that's a bug. Fix pushed, thanks!
> This breaks psql's \pset for me, though I've no idea why the buildfarm is
> not complaining a bit more.
I think in most cases, maxalign padding of the malloc allocation would
result in there being room for another byte without trashing anything
important. You must be using a libc that notices and complains about
even 1-byte buffer overruns.
regards, tom lane