Dominique Pelle wrote:

> The following command crashes vim-7.3a (2249:4620acaf4814):
> 
> $ vim -u NONE --noplugin -c ':ownsyntax foo'
> 
> ==2575== Invalid read of size 1
> ==2575==    at 0x80FB394: vim_strsave (misc2.c:1234)
> ==2575==    by 0x8084FA1: set_internal_string_var (eval.c:994)
> ==2575==    by 0x81710CA: ex_ownsyntax (syntax.c:6201)
> ==2575==    by 0x80A5A70: do_one_cmd (ex_docmd.c:2640)
> ==2575==    by 0x80A2810: do_cmdline (ex_docmd.c:1109)
> ==2575==    by 0x80A5E88: do_cmdline_cmd (ex_docmd.c:715)
> ==2575==    by 0x80D9D16: main (main.c:2755)
> ==2575==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
> 
> Attached patch fixes it but I'm not familiar enough with the new
> :ownsyntax command to test it properly.

Thanks.  I'll also remove b:current_syntax when using ":ownsyntax foo"
and the other window doesn't have any syntax HL.

-- 
Keep America beautiful.  Swallow your beer cans.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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

Raspunde prin e-mail lui