| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.799 |
| 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.799 |
| Problem: Accessing memory before an allocated block. |
| Solution: Check for not going before the start of a pattern. (Dominique |
| Pelle) |
| Files: src/fileio.c |
| |
| |
| |
| |
| |
| *** 8514,8520 **** |
| */ |
| brace_level = 0; |
| for (endpat = pat; *endpat && (*endpat != ',' || brace_level |
| ! || endpat[-1] == '\\'); ++endpat) |
| { |
| if (*endpat == '{') |
| brace_level++; |
| --- 8514,8520 ---- |
| */ |
| brace_level = 0; |
| for (endpat = pat; *endpat && (*endpat != ',' || brace_level |
| ! || (endpat > pat && endpat[-1] == '\\')); ++endpat) |
| { |
| if (*endpat == '{') |
| brace_level++; |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 799, |
| /**/ |
| |
| -- |
| The software said it requires Windows 95 or better, so I installed Linux. |
| |
| /// 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 /// |