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 / old / 5.4.2 < prev    next >
Encoding:
Internet Message Format  |  1999-07-26  |  3.1 KB

  1. To: Rajesh Kallingal <RajeshKallingal@email.com>
  2. In-Reply-To: <199907271235.IAA01836@pop03.pub01>
  3. Cc: "vim-dev@vim.org" <vim-dev@vim.org>
  4. Subject: patch 5.4.2 (was: gvim5.4 Bug?)
  5. Fcc: outbox
  6. From: Bram Moolenaar <Bram@moolenaar.net>
  7. ------------
  8.  
  9. Rajesh Kallingal wrote:
  10.  
  11. > I was trying to open an encrypted file. But when prompted for 'Enter
  12. > encryption key:', I pressed <ESC> and gvim crashed. Did anyone encountered
  13. > this before?
  14. > I am using gvim 5.4 release on Windoze NT.
  15.  
  16. The same problem happens on all systems.  It's a NULL pointer problem.
  17.  
  18.  
  19. Patch 5.4.2 
  20. Problem:    Typing <Esc> at the crypt key prompt caused a crash. (Kallingal)
  21. Solution:   Check for a NULL pointer returned from get_crypt_key().
  22. Files:      src/fileio.c
  23.                     
  24.  
  25. *** ../vim-5.4/src/fileio.c    Sun Jul 25 22:02:07 1999
  26. --- src/fileio.c    Tue Jul 27 20:49:01 1999
  27. ***************
  28. *** 534,540 ****
  29.               else
  30.               {
  31.                   cryptkey = get_crypt_key(newfile);
  32. !                 if (!*cryptkey)    /* no key entered */
  33.                   {
  34.                   if (!newfile)
  35.                       vim_free(cryptkey);
  36. --- 534,541 ----
  37.               else
  38.               {
  39.                   cryptkey = get_crypt_key(newfile);
  40. !                 /* check if empty key entered */
  41. !                 if (cryptkey != NULL && *cryptkey == NUL)
  42.                   {
  43.                   if (!newfile)
  44.                       vim_free(cryptkey);
  45. *** .../vim-5.4/src/version.h    Tue Jul 27 21:00:55 1999
  46. --- src/version.h    Tue Jul 27 21:01:14 1999
  47. ***************
  48. *** 19,26 ****
  49.   #define VIM_VERSION_MINOR_STR        "4"
  50.   #define VIM_VERSION_BUILD         57
  51.   #define VIM_VERSION_BUILD_STR        "57"
  52. ! #define VIM_VERSION_PATCHLEVEL         1
  53. ! #define VIM_VERSION_PATCHLEVEL_STR    "1"
  54.   
  55.   /*
  56.    * VIM_VERSION_NODOT is used for the runtime directory name.
  57. --- 19,26 ----
  58.   #define VIM_VERSION_MINOR_STR        "4"
  59.   #define VIM_VERSION_BUILD         57
  60.   #define VIM_VERSION_BUILD_STR        "57"
  61. ! #define VIM_VERSION_PATCHLEVEL         2
  62. ! #define VIM_VERSION_PATCHLEVEL_STR    "2"
  63.   
  64.   /*
  65.    * VIM_VERSION_NODOT is used for the runtime directory name.
  66. ***************
  67. *** 30,35 ****
  68.    */
  69.   #define VIM_VERSION_NODOT    "vim54"
  70.   #define VIM_VERSION_SHORT    "5.4"
  71. ! #define VIM_VERSION_MEDIUM    "5.4.1"
  72. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.1 (1999 Jul 27)"
  73. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.1 (1999 Jul 27, compiled "
  74. --- 30,35 ----
  75.    */
  76.   #define VIM_VERSION_NODOT    "vim54"
  77.   #define VIM_VERSION_SHORT    "5.4"
  78. ! #define VIM_VERSION_MEDIUM    "5.4.2"
  79. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.2 (1999 Jul 27)"
  80. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.2 (1999 Jul 27, compiled "
  81.  
  82. --
  83.        When danger reared its ugly head,
  84.        He bravely turned his tail and fled
  85.        Yes, Brave Sir Robin turned about
  86.        And gallantly he chickened out
  87.        Bravely taking to his feet
  88.        He beat a very brave retreat
  89.        Bravest of the brave Sir Robin
  90.        Petrified of being dead
  91.        Soiled his pants then brave Sir Robin
  92.        Turned away and fled.
  93.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  94.  
  95. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  96.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  97.