]> 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)
commitf80af01174fa1aafa97b9464f31db2b554d26f47
treeccaf2666907dffa35510f39a19ac546e806401ad
parente7de1bc0979ad81789864e6c2d346a5c16f28ad2
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