Charles Peacech wrote:

> In my gvim, the new regexp engine crash gvim for this regexp
> 
> 0x02a60c72 "htmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};""
> 
> The crash happens here
> 
> /*
>  * Allocate and initialize nfa_state_T.
>  */
>     static nfa_state_T *
> new_state(c, out, out1)
>     int               c;
>     nfa_state_T       *out;
>     nfa_state_T       *out1;
> {
>     nfa_state_T *s;
> 
>     if (istate >= nstate)
>       return NULL;
> 
>     s = &state_ptr[istate++];
> 
>     s->c    = c;
>     s->out  = out;
>     s->out1 = out1; // <----- Access violation here, probably because
> s points to foreign memory
> 
>     s->id   = istate;
>     s->lastlist = 0;
>     s->lastthread = NULL;
>     s->visits = 0;
>     s->negated = FALSE;
> 
>     return s;
> }
> 
> Anyone can confirm this?

Is this the same crash as for :echo search("[^A-z]") ?
No, looks like a different one.

Here is a hack to avoid some of the problems:

--- ../../mercurial/vim73/src/regexp_nfa.c      2013-05-19 22:31:13.000000000 
+0200
+++ regexp_nfa.c        2013-05-20 13:20:01.000000000 +0200
@@ -233,6 +233,10 @@
 
     /* Size for postfix representation of expr */
     postfix_size = sizeof(*post_start) * nstate_max;
+
+    /* HACK HACK HACK HACK HACK HACK: add more space */
+    postfix_size += 10000;
+
     post_start = (int *)lalloc(postfix_size, TRUE);
     if (post_start == NULL)
        return FAIL;


-- 
Females are strictly forbidden to appear unshaven in public.
                [real standing law in New Mexico, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.


Raspunde prin e-mail lui