From 462076c909f10efd460595f2090a7cf76d595b74 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sun, 24 Dec 2017 17:35:53 +0100 Subject: pcre: add patch fixing stack frame size detection --- .../development/libraries/pcre/stacksize-detection.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkgs/development/libraries/pcre/stacksize-detection.patch (limited to 'pkgs/development/libraries/pcre/stacksize-detection.patch') diff --git a/pkgs/development/libraries/pcre/stacksize-detection.patch b/pkgs/development/libraries/pcre/stacksize-detection.patch new file mode 100644 index 00000000000..4bc97069b1e --- /dev/null +++ b/pkgs/development/libraries/pcre/stacksize-detection.patch @@ -0,0 +1,16 @@ +diff --git a/pcre_exec.c b/pcre_exec.c +--- a/pcre_exec.c ++++ b/pcre_exec.c +@@ -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, -- cgit 1.4.1