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