]> granicus.if.org Git - postgresql/commit
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)
commitbb1d979612706655bd8be1ea54beadeee5bade85
tree4f80de92c75fd92574c1bb936866461733d8f468
parentc5e38b93c62fa360bb054c41a864ab45d9eccea0
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