To: vim-dev@vim.org Subject: Patch 6.1.272 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.272 Problem: After using ":set define<" a crash may happen. (Christian Robinson) Solution: Make a copy of the option value in allocated memory. Files: src/option.c *** ../vim61.271/src/option.c Sun Nov 10 13:33:34 2002 --- src/option.c Sat Jan 4 13:26:29 2003 *************** *** 3496,3504 **** } else if (nextchar == '<') /* set to global val */ { ! newval = *(char_u **)get_varp_scope( ! &(options[opt_idx]), OPT_GLOBAL); ! new_value_alloced = FALSE; } else { --- 3498,3506 ---- } else if (nextchar == '<') /* set to global val */ { ! newval = vim_strsave(*(char_u **)get_varp_scope( ! &(options[opt_idx]), OPT_GLOBAL)); ! new_value_alloced = TRUE; } else { *** ../vim61.271/src/version.c Fri Jan 3 22:48:00 2003 --- src/version.c Sun Jan 5 13:27:40 2003 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 272, /**/ -- Not too long ago, unzipping in public was illegal... /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///