home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.159 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  1.5 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.159
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.159
  11. Problem:    Using uninitialized pointer when out of memory.
  12. Solution:   Check for NULL return value.
  13. Files:        src/mbyte.c
  14.  
  15.  
  16. *** ../vim-7.3.158/src/mbyte.c    2010-10-27 13:37:39.000000000 +0200
  17. --- src/mbyte.c    2011-04-11 14:17:39.000000000 +0200
  18. ***************
  19. *** 4129,4135 ****
  20.       done = to - (char *)result;
  21.       }
  22.   
  23. !     if (resultlenp != NULL)
  24.       *resultlenp = (int)(to - (char *)result);
  25.       return result;
  26.   }
  27. --- 4129,4135 ----
  28.       done = to - (char *)result;
  29.       }
  30.   
  31. !     if (resultlenp != NULL && result != NULL)
  32.       *resultlenp = (int)(to - (char *)result);
  33.       return result;
  34.   }
  35. *** ../vim-7.3.158/src/version.c    2011-04-11 14:27:34.000000000 +0200
  36. --- src/version.c    2011-04-11 14:28:08.000000000 +0200
  37. ***************
  38. *** 716,717 ****
  39. --- 716,719 ----
  40.   {   /* Add new patch number below this line */
  41. + /**/
  42. +     159,
  43.   /**/
  44.  
  45. -- 
  46. I learned the customs and mannerisms of engineers by observing them, much the
  47. way Jane Goodall learned about the great apes, but without the hassle of
  48. grooming.
  49.                 (Scott Adams - The Dilbert principle)
  50.  
  51.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  52. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  53. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  54.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  55.