Re: BUG #17830: Incorrect memory access in trgm_regexp

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17830: Incorrect memory access in trgm_regexp
Date: 2023-03-12 12:00:01
Message-ID: 68d98663-2adb-56ba-5072-d1c0f41cf3f0@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

11.03.2023 19:39, Tom Lane wrote:
> Yeah, that de-duplication code is incorrectly assuming that the
> NFA has more than zero arcs, which it doesn't because the regex
> compiler saw that the pattern is unsatisfiable.
>
> Thanks for the report!

I've retested trgm_regexp with all regular expressions presented in
src/test/regress/sql/regex.sql and src/test/modules/test_regex/sql/test_regex.sql
and found no new anomalies.

Thank you for the fix!

Best regards,
Alexander

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2023-03-12 17:02:41 Re: BUG #17832: ERROR: failed to apply nullingrels to a non-Var in HEAD
Previous Message Dean Rasheed 2023-03-12 11:14:29 Re: BUG #17809: MERGE ... UPDATE fails with BEFORE ROW UPDATE trigger when target row updated concurrently