From 051d91243a1637afa9fea6ed1eb3f0259fbbe772 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: May 04 2015 16:00:04 +0000 Subject: - patchlevel 714 --- diff --git a/7.4.714 b/7.4.714 new file mode 100644 index 0000000..69739d9 --- /dev/null +++ b/7.4.714 @@ -0,0 +1,52 @@ +To: vim_dev@googlegroups.com +Subject: Patch 7.4.714 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +------------ + +Patch 7.4.714 +Problem: Illegal memory access when there are illegal bytes. +Solution: Check the byte length of the character. (Dominique Pelle) +Files: src/regexp.c + + +*** ../vim-7.4.713/src/regexp.c 2015-04-21 14:02:28.489694393 +0200 +--- src/regexp.c 2015-05-04 09:50:52.694084997 +0200 +*************** +*** 6113,6119 **** + { + if (ireg_ic && enc_utf8) + cf = utf_fold(utf_ptr2char(opnd)); +! while (count < maxcount) + { + for (i = 0; i < len; ++i) + if (opnd[i] != scan[i]) +--- 6113,6119 ---- + { + if (ireg_ic && enc_utf8) + cf = utf_fold(utf_ptr2char(opnd)); +! while (count < maxcount && (*mb_ptr2len)(scan) >= len) + { + for (i = 0; i < len; ++i) + if (opnd[i] != scan[i]) +*** ../vim-7.4.713/src/version.c 2015-05-04 09:31:05.479605202 +0200 +--- src/version.c 2015-05-04 09:51:50.917419713 +0200 +*************** +*** 743,744 **** +--- 743,746 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 714, + /**/ + +-- +hundred-and-one symptoms of being an internet addict: +26. You check your mail. It says "no new messages." So you check it again. + + /// 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 ///