aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/like.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-10-02 15:00:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-10-02 15:00:52 -0400
commitbb1d979612706655bd8be1ea54beadeee5bade85 (patch)
tree4f80de92c75fd92574c1bb936866461733d8f468 /src/backend/utils/adt/like.c
parentc5e38b93c62fa360bb054c41a864ab45d9eccea0 (diff)
downloadpostgresql-bb1d979612706655bd8be1ea54beadeee5bade85.tar.gz
postgresql-bb1d979612706655bd8be1ea54beadeee5bade85.zip
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.
Diffstat (limited to 'src/backend/utils/adt/like.c')
-rw-r--r--src/backend/utils/adt/like.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/adt/like.c b/src/backend/utils/adt/like.c
index bcd9e2182d0..23c6d7b8cec 100644
--- a/src/backend/utils/adt/like.c
+++ b/src/backend/utils/adt/like.c
@@ -21,6 +21,7 @@
#include "catalog/pg_collation.h"
#include "mb/pg_wchar.h"
+#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/pg_locale.h"