Fix invalid array access in trgm_regexp.c.
authorTom Lane
Mon, 22 Feb 2021 00:46:46 +0000 (19:46 -0500)
committerTom Lane
Mon, 22 Feb 2021 00:46:46 +0000 (19:46 -0500)
commit6ee479abfc27a18c37fe77140d16d3ac31f4ac31
treeb5ba1f609a26fed45b13933bc4a8d78634179ae1
parentea1268f6301cc7adce571cc9c5ebe8d9342a2ef4
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.
contrib/pg_trgm/trgm_regexp.c