Hi, Bram
I found NFA regexp engine bug.
Prerequisite
vim 7.3.1004
set re=0
How to reproduce
vim -N -u NONE -i NONE --noplugin
o<Esc>
/\n* or /\_.*
Actual
gone infinite loop.
How to take back control. (on linux)
pgrep -lf
kill -9 nnn <-- nnn is vim process number checked by pgrep.
I attached patch.
Please check this.
Best regards,
Hirohito Higashi
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff -r 39cff9b39394 src/regexp_nfa.c
--- a/src/regexp_nfa.c Tue May 21 22:38:18 2013 +0200
+++ b/src/regexp_nfa.c Wed May 22 18:04:03 2013 +0900
@@ -2931,8 +2931,10 @@
c = *reginput;
n = 1;
}
- if (c == NUL)
+ if (c == NUL) {
n = 0;
+ reginput_updated = FALSE;
+ }
/* swap lists */
thislist = &list[flag];