Ron Aaron wrote:

> Crashes for me:
> 
> (gdb) bt
> #0  0xb7fdd424 in __kernel_vsyscall ()
> #1  0xb75391df in __GI_raise (sig=6) at 
> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> #2  0xb753c825 in __GI_abort () at abort.c:91
> #3  0xb757639a in __libc_message (do_abort=2, fmt=0xb766e6c7 "*** %s ***: %s 
> terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
> #4  0xb760f105 in __GI___fortify_fail (msg=0xb766e648 "buffer overflow 
> detected") at fortify_fail.c:38
> #5  0xb760deba in __GI___chk_fail () at chk_fail.c:29
> #6  0x08191a77 in nfa_regatom ()
> #7  0x08193a74 in nfa_regconcat ()
> #8  0x08194000 in nfa_regbranch ()
> #9  0x081940e8 in nfa_reg ()
> #10 0x08194ee1 in nfa_regcomp ()
> #11 0x081a3fc9 in vim_regcomp ()
> #12 0x080e10f9 in do_autocmd_event ()
> #13 0x080e1403 in do_autocmd ()
> #14 0x080b9c4d in ex_autocmd ()
> #15 0x080c128c in do_one_cmd ()
> #16 0x080c424b in do_cmdline ()
> #17 0x080b4f7f in do_source ()
> #18 0x080b58c9 in do_in_runtimepath.constprop.8 ()
> #19 0x080b8bf6 in ex_filetype ()
> #20 0x080c128c in do_one_cmd ()
> #21 0x080c424b in do_cmdline ()
> #22 0x080b4f7f in do_source ()
> #23 0x080558ac in main ()

I cannot reproduce it.

Can you find out where in nfa_regatom() this happens?

Hmm, maybe it inlines nfa_recognize_char_class().  The myconfig buffer
there needs to be 10 chars instead of 9.

-- 
It is illegal for anyone to give lighted cigars to dogs, cats, and other
domesticated animal kept as pets.
                [real standing law in Illinois, 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