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.0 / 7.0.238 < prev    next >
Encoding:
Internet Message Format  |  2007-04-30  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.0.238
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.238
  11. Problem:    Crash when ":match" pattern runs into 'maxmempattern'. (Yakov
  12.         Lerner)
  13. Solution:   Don't free the regexp program of match_hl.
  14. Files:        src/screen.c
  15.  
  16.  
  17. *** ../vim-7.0.237/src/screen.c    Tue Nov 28 16:16:03 2006
  18. --- src/screen.c    Tue May  1 21:36:50 2007
  19. ***************
  20. *** 6477,6485 ****
  21.       if (called_emsg)
  22.       {
  23.           /* Error while handling regexp: stop using this regexp. */
  24. !         vim_free(shl->rm.regprog);
  25.           shl->rm.regprog = NULL;
  26. !         no_hlsearch = TRUE;
  27.           break;
  28.       }
  29.       if (nmatched == 0)
  30. --- 6477,6491 ----
  31.       if (called_emsg)
  32.       {
  33.           /* Error while handling regexp: stop using this regexp. */
  34. !         if (shl == &search_hl)
  35. !         {
  36. !         /* don't free the regprog in match_hl[], it's a copy */
  37. !         vim_free(shl->rm.regprog);
  38. !         no_hlsearch = TRUE;
  39. !         }
  40.           shl->rm.regprog = NULL;
  41. !         shl->lnum = 0;
  42. !         got_int = FALSE;  /* avoid the "Type :quit to exit Vim" message */
  43.           break;
  44.       }
  45.       if (nmatched == 0)
  46. *** ../vim-7.0.237/src/version.c    Tue May  1 19:06:39 2007
  47. --- src/version.c    Tue May  1 21:39:48 2007
  48. ***************
  49. *** 668,669 ****
  50. --- 668,671 ----
  51.   {   /* Add new patch number below this line */
  52. + /**/
  53. +     238,
  54.   /**/
  55.  
  56. -- 
  57. Change is inevitable, except from a vending machine.
  58.  
  59.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  60. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  61. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  62.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  63.