File 0001-Add-structure-for-mutual-recursion-detection-in-ePCR.patch of Package erlang

From 949850d71073f52aa3af8e52878ca5d790d8c0ae Mon Sep 17 00:00:00 2001
From: Zephyr Pellerin <zv@nxvr.org>
Date: Sat, 18 Jun 2016 16:18:15 -0700
Subject: [PATCH 1/3] Add structure for mutual recursion detection in ePCRE

---
 erts/emulator/pcre/pcre_internal.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/erts/emulator/pcre/pcre_internal.h b/erts/emulator/pcre/pcre_internal.h
index af436bd99b..3de937239d 100644
--- a/erts/emulator/pcre/pcre_internal.h
+++ b/erts/emulator/pcre/pcre_internal.h
@@ -2447,6 +2447,12 @@ typedef struct compile_data {
   pcre_uchar nl[4];                 /* Newline string when fixed length */
 } compile_data;
 
+/* Structure for mutual recursion detection. */
+typedef struct recurse_check {
+    struct recurse_check *prev;
+    const pcre_uchar *group;
+} recurse_check;
+
 /* Structure for maintaining a chain of pointers to the currently incomplete
 branches, for testing for left recursion while compiling. */
 
-- 
2.13.6

openSUSE Build Service is sponsored by