From a1c9961364820d491470bba8fb48bf51b0c56895 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Thu, 30 Nov 2017 15:37:30 +0000 Subject: Patch from MariaDB to fix stack frame size detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This comes via Ondřej Surý in #878107. Upstream don't consider it sufficiently important to fix, but it is causing us issues. --- pcre_exec.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pcre_exec.c') diff --git a/pcre_exec.c b/pcre_exec.c index 24b23ca..55230cd 100644 --- a/pcre_exec.c +++ b/pcre_exec.c @@ -509,6 +509,12 @@ Returns: MATCH_MATCH if matched ) these values are >= 0 (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, -- cgit v1.2.3