Add recursion depth protection to LIKE matching.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2015 19:00:52 +0000 (15:00 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2015 19:00:52 +0000 (15:00 -0400)
commit4175cc604f6df6b0f9e9f177898a1b94e6f14aee
treeb3600a77c3e9f8f71378f6d5e87daadb169754d0
parent9ed207ae99bca08851afbc3e189a95468dacdf97
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