Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.198
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.198
Karsten Hopp 81c285
Problem:    Size of buffer used for tgetent() may be too small.
Karsten Hopp 81c285
Solution:   Use the largest known size everywhere.
Karsten Hopp 81c285
Files:	    src/vim.h
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.197/src/vim.h	2009-05-14 22:19:19.000000000 +0200
Karsten Hopp 81c285
--- src/vim.h	2009-06-07 20:37:48.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1345,1355 ****
Karsten Hopp 81c285
  # define MSG_BUF_CLEN  MSG_BUF_LEN	    /* cell length */
Karsten Hopp 81c285
  #endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
! #if defined(AMIGA) || defined(__linux__) || defined(__QNX__) || defined(__CYGWIN32__) || defined(_AIX)
Karsten Hopp 81c285
! # define TBUFSZ 2048		/* buffer size for termcap entry */
Karsten Hopp 81c285
! #else
Karsten Hopp 81c285
! # define TBUFSZ 1024		/* buffer size for termcap entry */
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * Maximum length of key sequence to be mapped.
Karsten Hopp 81c285
--- 1345,1355 ----
Karsten Hopp 81c285
  # define MSG_BUF_CLEN  MSG_BUF_LEN	    /* cell length */
Karsten Hopp 81c285
  #endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
! /* Size of the buffer used for tgetent().  Unfortunately this is largely
Karsten Hopp 81c285
!  * undocumented, some systems use 1024.  Using a buffer that is too small
Karsten Hopp 81c285
!  * causes a buffer overrun and a crash.  Use the maximum known value to stay
Karsten Hopp 81c285
!  * on the safe side. */
Karsten Hopp 81c285
! #define TBUFSZ 2048		/* buffer size for termcap entry */
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * Maximum length of key sequence to be mapped.
Karsten Hopp 81c285
*** ../vim-7.2.197/src/version.c	2009-06-10 18:15:49.000000000 +0200
Karsten Hopp 81c285
--- src/version.c	2009-06-16 11:06:45.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     198,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
How To Keep A Healthy Level Of Insanity:
Karsten Hopp 81c285
7. Finish all your sentences with "in accordance with the prophecy".
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///