]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commitbdc5d95b60bc1f17962a6b6184924b3672bd2f60
treecc9c1cf8e4e3a57fcfcac06432d1f1fce51b9b3e
parent20c627707c44deaed92c5d67b350f27e06e24228
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