chiark / gitweb /
Commit Debian 3.0 (quilt) metadata
[pcre3.git] / debian / patches / patch-from-mariadb-to-fix-stack-frame-si
1 From: Matthew Vernon <matthew@debian.org>
2 Date: Thu, 30 Nov 2017 15:37:30 +0000
3 X-Dgit-Generated: 2:8.39-6 a1c9961364820d491470bba8fb48bf51b0c56895
4 Subject: Patch from MariaDB to fix stack frame size detection
5
6 This comes via Ondřej Surý <ondrej@debian.org> in #878107. Upstream
7 don't consider it sufficiently important to fix, but it is causing us
8 issues.
9
10 ---
11
12 --- pcre3-8.39.orig/pcre_exec.c
13 +++ pcre3-8.39/pcre_exec.c
14 @@ -509,6 +509,12 @@ Returns:       MATCH_MATCH if matched
15                   (e.g. stopped by repeated call or recursion limit)
16  */
17  
18 +#ifdef __GNUC__
19 +static int
20 +match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
21 +  PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
22 +  unsigned int rdepth) __attribute__((noinline,noclone));
23 +#endif
24  static int
25  match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
26    PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,