Thread: pgsql: Add recursion depth protection to LIKE matching.

pgsql: Add recursion depth protection to LIKE matching.

From
Tom Lane
Date:
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_1_STABLE

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

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