Thread: pgsql-server/contrib/tsearch2 ts_cfg.c expecte ...

pgsql-server/contrib/tsearch2 ts_cfg.c expecte ...

From
teodor@svr1.postgresql.org (Teodor Sigaev)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    teodor@svr1.postgresql.org    03/09/22 10:32:33

Modified files:
    contrib/tsearch2: ts_cfg.c
    contrib/tsearch2/expected: tsearch2.out

Log message:
    fix hlfinditem function. Thanks to "Stphane Bidoul" <stephane.bidoul@softwareag.com>.

    The 'word' variable there is initialised from
    the prs->words array, but immediately after,
    that array may be reallocated, thus leaving
    word pointing to unallocated memory.