Karsten Hopp dc4cd9
To: vim_dev@googlegroups.com
Karsten Hopp dc4cd9
Subject: Patch 7.3.773
Karsten Hopp dc4cd9
Fcc: outbox
Karsten Hopp dc4cd9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp dc4cd9
Mime-Version: 1.0
Karsten Hopp dc4cd9
Content-Type: text/plain; charset=UTF-8
Karsten Hopp dc4cd9
Content-Transfer-Encoding: 8bit
Karsten Hopp dc4cd9
------------
Karsten Hopp dc4cd9
Karsten Hopp dc4cd9
Patch 7.3.773 (after 7.3.767)
Karsten Hopp dc4cd9
Problem:    Crash when OriginalFirstThunk is zero.
Karsten Hopp dc4cd9
Solution:   Skip items with OriginalFirstThunk not set. (Ken Takata)
Karsten Hopp dc4cd9
Files:	    src/mbyte.c
Karsten Hopp dc4cd9
Karsten Hopp dc4cd9
Karsten Hopp dc4cd9
*** ../vim-7.3.772/src/mbyte.c	2013-01-17 14:39:43.000000000 +0100
Karsten Hopp dc4cd9
--- src/mbyte.c	2013-01-19 13:59:21.000000000 +0100
Karsten Hopp dc4cd9
***************
Karsten Hopp dc4cd9
*** 4317,4322 ****
Karsten Hopp dc4cd9
--- 4317,4324 ----
Karsten Hopp dc4cd9
  							    .VirtualAddress);
Karsten Hopp dc4cd9
      for (; pImpDesc->FirstThunk; ++pImpDesc)
Karsten Hopp dc4cd9
      {
Karsten Hopp dc4cd9
+ 	if (!pImpDesc->OriginalFirstThunk)
Karsten Hopp dc4cd9
+ 	    continue;
Karsten Hopp dc4cd9
  	pIAT = (PIMAGE_THUNK_DATA)(pImage + pImpDesc->FirstThunk);
Karsten Hopp dc4cd9
  	pINT = (PIMAGE_THUNK_DATA)(pImage + pImpDesc->OriginalFirstThunk);
Karsten Hopp dc4cd9
  	for (; pIAT->u1.Function; ++pIAT, ++pINT)
Karsten Hopp dc4cd9
*** ../vim-7.3.772/src/version.c	2013-01-17 18:33:58.000000000 +0100
Karsten Hopp dc4cd9
--- src/version.c	2013-01-19 14:01:50.000000000 +0100
Karsten Hopp dc4cd9
***************
Karsten Hopp dc4cd9
*** 727,728 ****
Karsten Hopp dc4cd9
--- 727,730 ----
Karsten Hopp dc4cd9
  {   /* Add new patch number below this line */
Karsten Hopp dc4cd9
+ /**/
Karsten Hopp dc4cd9
+     773,
Karsten Hopp dc4cd9
  /**/
Karsten Hopp dc4cd9
Karsten Hopp dc4cd9
-- 
Karsten Hopp dc4cd9
Experience is what you get when you don't get what you want.
Karsten Hopp dc4cd9
Karsten Hopp dc4cd9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp dc4cd9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp dc4cd9
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp dc4cd9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///