Blame SOURCES/pcre-8.41-fix_stack_estimator.patch

20439a
Fix recursion stack estimator
20439a
20439a
Due to inlining match() by recent GCC, the stack estimator reported 4-bytes
20439a
stack consumption.
20439a
20439a
Author: Sergei Golubchik <vuvova@gmail.com>
20439a
<https://bugs.exim.org/show_bug.cgi?id=2173>
20439a
20439a
diff --git a/pcre/pcre_exec.c b/pcre/pcre_exec.c
20439a
--- a/pcre/pcre_exec.c
20439a
+++ b/pcre/pcre_exec.c
20439a
@@ -509,6 +509,12 @@
20439a
                  (e.g. stopped by repeated call or recursion limit)
20439a
 */
20439a
 
20439a
+#ifdef __GNUC__
20439a
+static int
20439a
+match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
20439a
+  PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
20439a
+  unsigned int rdepth) __attribute__((noinline,noclone));
20439a
+#endif
20439a
 static int
20439a
 match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
20439a
   PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,