Add recursion depth protection to LIKE matching.
authorTom Lane <[email protected]>
Fri, 2 Oct 2015 19:00:52 +0000 (15:00 -0400)
committerTom Lane <[email protected]>
Fri, 2 Oct 2015 19:00:52 +0000 (15:00 -0400)
commit57bf7b54831b68f63cea006b988e82cccb3469de
treedd91d0b8bffb06e5af8c823b1c7cc42b9fbc838a
parenta0c089f33f2909663a369eead7877eb6317d31f3
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.
src/backend/utils/adt/like.c
src/backend/utils/adt/like_match.c