pgsql: Fix minor bug in regexp makesearch() function. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix minor bug in regexp makesearch() function.
Date
Msg-id E1ZZpWo-0000Yq-IP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix minor bug in regexp makesearch() function.

The list-wrangling here was done wrong, allowing the same state to get
put into the list twice.  The following loop then would clone it twice.
The second clone would wind up with no inarcs, so that there was no
observable misbehavior AFAICT, but a useless state in the finished NFA
isn't an especially good thing.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3718015e468855441672b0b341f075cd0ba0f726

Modified Files
--------------
src/backend/regex/regcomp.c |   19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix minor bug in regexp makesearch() function.
Next
From: Stephen Frost
Date:
Subject: pgsql: Revert ed47666 and part of ef57b98