| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.814 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.814 |
| Problem: Illegal memory access with "sy match a fold". |
| Solution: Check for empty string. (Dominique Pelle) |
| Files: src/syntax.c |
| |
| |
| |
| |
| |
| *** 5654,5660 **** |
| char_u *cpo_save; |
| |
| /* need at least three chars */ |
| ! if (arg == NULL || arg[1] == NUL || arg[2] == NUL) |
| return NULL; |
| |
| end = skip_regexp(arg + 1, *arg, TRUE, NULL); |
| --- 5654,5660 ---- |
| char_u *cpo_save; |
| |
| /* need at least three chars */ |
| ! if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL) |
| return NULL; |
| |
| end = skip_regexp(arg + 1, *arg, TRUE, NULL); |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 814, |
| /**/ |
| |
| -- |
| Witches prefer brooms: vacuum-cleaners need extension cords! |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 /// |