From: Alexander Lakhin <exclusion@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17830: Incorrect memory access in trgm_regexp
Date: Sun, 12 Mar 2023 15:00:01 +0300
Message-ID: <68d98663-2adb-56ba-5072-d1c0f41cf3f0@gmail.com> (raw)
In-Reply-To: <1190342.1678552770@sss.pgh.pa.us>
References: <17830-57ff5f89bdb02b09@postgresql.org>
<1190342.1678552770@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: exclusion@gmail.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17830: Incorrect memory access in trgm_regexp
In-Reply-To: <68d98663-2adb-56ba-5072-d1c0f41cf3f0@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox