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