pgsql: Fix invalid array access in trgm_regexp.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix invalid array access in trgm_regexp.c.
Date: 2021-02-22 00:46:55
Message-ID: E1lDzNH-0004X9-UI@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix invalid array access in trgm_regexp.c.

Brown-paper-bag bug in 08c0d6ad6: I missed one place that needed
to guard against RAINBOW arc colors. Remarkably, nothing noticed
the invalid array access except buildfarm member thorntail.

Thanks to Noah Misch for assistance with tracking this down.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6ee479abfc27a18c37fe77140d16d3ac31f4ac31

Modified Files
--------------
contrib/pg_trgm/trgm_regexp.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-02-22 01:29:24 pgsql: Simplify memory management for regex DFAs a little.
Previous Message Tom Lane 2021-02-21 00:26:59 pgsql: Fix regex engine to suppress useless concatenation sub-REs.