Re: BUG #17830: Incorrect memory access in trgm_regexp - Mailing list pgsql-bugs

From Alexander Lakhin
Subject Re: BUG #17830: Incorrect memory access in trgm_regexp
Date
Msg-id 68d98663-2adb-56ba-5072-d1c0f41cf3f0@gmail.com
Whole thread Raw
In response to Re: BUG #17830: Incorrect memory access in trgm_regexp  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-bugs by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: BUG #17809: MERGE ... UPDATE fails with BEFORE ROW UPDATE trigger when target row updated concurrently
Next
From: Tom Lane
Date:
Subject: Re: BUG #17832: ERROR: failed to apply nullingrels to a non-Var in HEAD