diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 13:56:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 13:56:05 +0100 |
commit | 4271f629ede6bbe9e5b4cbc8346c8b943dedab18 (patch) | |
tree | 5998f460ed5ae75574d547b8560e8f780abc80ed /src/lua/lua_regexp.c | |
parent | a850877478d9372b5c648b79b8dc7fa9616914ab (diff) | |
download | rspamd-4271f629ede6bbe9e5b4cbc8346c8b943dedab18.tar.gz rspamd-4271f629ede6bbe9e5b4cbc8346c8b943dedab18.zip |
Fix splitting in case of bogus regexp.
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r-- | src/lua/lua_regexp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c index 2f7ea3ea1..75e54bab5 100644 --- a/src/lua/lua_regexp.c +++ b/src/lua/lua_regexp.c @@ -568,6 +568,9 @@ lua_regexp_split (lua_State *L) lua_rawseti (L, -2, ++i); matched = TRUE; } + else if (start == end) { + break; + } old_start = end; } |