Dominique wrote:

> Bram Moolenaar wrote:
> 
> > Patch 8.1.0747
> > Problem:    map() with a bad expression doesn't give an error. (Ingo Karkat)
> > Solution:   Check for giving an error message. (closes #3800)
> > Files:      src/eval.c, src/testdir/test_filter_map.vim
> 
> Something is not right with patch 8.1.0747.
> The following command gives junk characters
> in the error message:
> 
> $ ./vim --clean -c 'call map([1], "42 +")'
> Error detected while processing command line:
> E15: Invalid expression: đSaSV
> 
> If I rerun it, I get different junk, which suggests
> that it outputs something not initialized:
> 
> $ ./vim --clean -c 'call map([1], "42 +")'
> Error detected while processing command line:
> E15: Invalid expression: <c4><d1>^W"<ec>U
> 
> Yet valgrind reports nothing.

Thanks for noticing.  It's passing the pointer itself, instead of the
string.  Fix coming...

-- 
hundred-and-one symptoms of being an internet addict:
203. You're an active member of more than 20 newsgroups.

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