29 lines
702 B
Diff
29 lines
702 B
Diff
From 5c8ed2a12935501759ebf1792ee4949b429c195b Mon Sep 17 00:00:00 2001
|
|
From: "K.Kosako" <kosako@sofnec.co.jp>
|
|
Date: Wed, 24 May 2017 13:43:25 +0900
|
|
Subject: [PATCH] fix #60 : invalid state(CCS_VALUE) in parse_char_class()
|
|
|
|
Signed-off-by: hanxinke <hanxinke@huawei.com>
|
|
---
|
|
src/regparse.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/regparse.c b/src/regparse.c
|
|
index fcc05cf..3689519 100644
|
|
--- a/src/regparse.c
|
|
+++ b/src/regparse.c
|
|
@@ -6071,7 +6071,9 @@ next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type,
|
|
}
|
|
}
|
|
|
|
- *state = CCS_VALUE;
|
|
+ if (*state != CCS_START)
|
|
+ *state = CCS_VALUE;
|
|
+
|
|
*type = CCV_CLASS;
|
|
return 0;
|
|
}
|
|
--
|
|
2.0.1
|
|
|