]> 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)
commitb875ca09f3626e4002b5e70e00f99e4bc29c4d32
treeb72b4bd84476d56a95702cb46b951b37e011521b
parent54b116d83f828f5cff2e867d8a067c204d0978ab
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