On Thu, 19 Nov 2026, 16:53 Daniel Gustafsson, <daniel(at)yesql(dot)se> wrote:
> > On 19 Nov 2026, at 02:33, PG Bug reporting form <noreply(at)postgresql(dot)org>
> wrote:
>
> > In calc_word_similarity(), an array is allocated with zero elements, but
> the
> > function reads found[0], accessing one byte outside the allocated array
> > bounds.
>
> Verified, the trivial diff attached avoids this.
>
> --
> Daniel Gustafsson
>
I have also found this some time ago with UBSAN, but didn't report due to
no actual server crash. Anyway LGTM
>