summaryrefslogtreecommitdiff
path: root/system/pcre/stack-frame-size-detection.patch
blob: 54179a7d672e538377da5457b44a59387037126d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- pcre-8.43/pcre_exec.c.old	2018-02-20 15:21:37.000000000 +0000
+++ pcre-8.43/pcre_exec.c	2019-07-06 19:36:59.078411271 +0000
@@ -509,6 +509,12 @@
                  (e.g. stopped by repeated call or recursion limit)
 */
 
+#ifdef __GNUC__
+static int
+match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
+  PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
+  unsigned int rdepth) __attribute__((noinline,noclone));
+#endif
 static int
 match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
   PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,