Dominique Pellé <[email protected]> wrote:

> >> *** ../vim-8.0.1415/src/testdir/test_search.vim 2017-12-16 
> >> 19:59:30.559719124 +0100
> >> --- src/testdir/test_search.vim 2017-12-19 21:17:46.704212089 +0100
> >> ***************
> >> *** 729,731 ****
> >> --- 729,738 ----
> >>     call search(getline("."))
> >>     bwipe!
> >>   endfunc
> >> +
> >> + func Test_search_sentence()
> >> +   new
> >> +   " this used to cause a crash
> >> +   call assert_fails("/\\%'", 'E486')
> >> +   call assert_fails("/", 'E486')
> >> + endfunc
> >
> > Hi Bram
> >
> > I think that the test was meant to do:
> >
> >    call assert_fails("/\\%')", 'E486')
> >
> > Notice the added parenthesis since \%')
> > matches mark ) i.e. the end of sentence.
> >
> > Regards
> > Dominique
> 
> 
> Patch 8.0.1416 appears the crash with this case:
> 
> $ cat crash1
> /\%')
> /
> 
> $ vim -u NONE -S crash1
> (no crash anymore)
> 
> 
> However, the following case still causes a crash
> (search for start of sentence):
> 
> $ cat crash
> /\%'(
> /
> 
> $ vim -u NONE -S crash
> Vim: Caught deadly signal SEGV
> 
> Vim: Finished.
> Segmentation fault (core dumped)

Thanks, I think we can fix that.

-- 
Birthdays are healthy.  The more you have them, the longer you live.

 /// 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/d/optout.

Raspunde prin e-mail lui