pgsql: Add recursion depth protection to LIKE matching.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add recursion depth protection to LIKE matching.
Date: 2015-10-02 19:01:16
Message-ID: E1Zi5a0-00016t-Gw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add recursion depth protection to LIKE matching.

Since MatchText() recurses, it could in principle be driven to stack
overflow, although quite a long pattern would be needed.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/bb1d979612706655bd8be1ea54beadeee5bade85

Modified Files
--------------
src/backend/utils/adt/like.c | 1 +
src/backend/utils/adt/like_match.c | 3 +++
2 files changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2015-10-02 20:57:41 pgsql: Clarify FDW documentation about ON CONFLICT.
Previous Message Tom Lane 2015-10-02 18:52:23 pgsql: Add recursion depth protections to regular expression matching.