summaryrefslogblamecommitdiff
path: root/user/oniguruma/192.patch
blob: d027757d753803ea657f950d902e0ba401875943 (plain) (tree)























                                                                                
From 47af49af70a717ac31c54ae55ad242a27f213def Mon Sep 17 00:00:00 2001
From: "K.Kosako" <kkosako0@gmail.com>
Date: Wed, 22 Apr 2020 14:47:09 +0900
Subject: [PATCH] fix #192: Unexpected regex match

---
 src/regcomp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/regcomp.c b/src/regcomp.c
index 4d5b78f..b3193c5 100644
--- a/src/regcomp.c
+++ b/src/regcomp.c
@@ -3567,6 +3567,11 @@ check_node_in_look_behind(Node* node, int not, int* used)
 
     if (IS_NOT_NULL(NODE_BODY(node)))
       r = check_node_in_look_behind(NODE_BODY(node), not, used);
+
+    /* Issue 192
+       escape removing node in tune_look_behind()
+     */
+    *used = TRUE;
     break;
 
   case NODE_GIMMICK: