8f9c287
To: vim-dev@vim.org
8f9c287
Subject: Patch 7.2.251
8f9c287
Fcc: outbox
8f9c287
From: Bram Moolenaar <Bram@moolenaar.net>
8f9c287
Mime-Version: 1.0
8f9c287
Content-Type: text/plain; charset=UTF-8
8f9c287
Content-Transfer-Encoding: 8bit
8f9c287
------------
8f9c287
8f9c287
Patch 7.2.251 (after 7.2.044)
8f9c287
Problem:    Compiler adds invalid memory bounds check.
8f9c287
Solution:   Remove _FORTIFY_SOURCE=2 from CFLAGS. (Dominique Pelle)
8f9c287
Files:	    src/auto/configure, src/configure.in
8f9c287
8f9c287
8f9c287
*** ../vim-7.2.250/src/auto/configure	2009-07-22 11:16:54.000000000 +0200
8f9c287
--- src/auto/configure	2009-08-07 14:49:52.000000000 +0200
8f9c287
***************
8f9c287
*** 17135,17141 ****
8f9c287
        { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
8f9c287
  $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
8f9c287
    if test "$gccmajor" -gt "3"; then
8f9c287
!     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
8f9c287
      { $as_echo "$as_me:$LINENO: result: yes" >&5
8f9c287
  $as_echo "yes" >&6; }
8f9c287
    else
8f9c287
--- 17135,17141 ----
8f9c287
        { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
8f9c287
  $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
8f9c287
    if test "$gccmajor" -gt "3"; then
8f9c287
!     CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
8f9c287
      { $as_echo "$as_me:$LINENO: result: yes" >&5
8f9c287
  $as_echo "yes" >&6; }
8f9c287
    else
8f9c287
*** ../vim-7.2.250/src/configure.in	2009-07-22 11:16:54.000000000 +0200
8f9c287
--- src/configure.in	2009-08-07 14:49:47.000000000 +0200
8f9c287
***************
8f9c287
*** 3233,3239 ****
8f9c287
    dnl declared as char x[1] but actually longer.  Introduced in gcc 4.0.
8f9c287
    AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
8f9c287
    if test "$gccmajor" -gt "3"; then
8f9c287
!     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
8f9c287
      AC_MSG_RESULT(yes)
8f9c287
    else
8f9c287
      AC_MSG_RESULT(no)
8f9c287
--- 3233,3239 ----
8f9c287
    dnl declared as char x[1] but actually longer.  Introduced in gcc 4.0.
8f9c287
    AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
8f9c287
    if test "$gccmajor" -gt "3"; then
8f9c287
!     CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
8f9c287
      AC_MSG_RESULT(yes)
8f9c287
    else
8f9c287
      AC_MSG_RESULT(no)
8f9c287
*** ../vim-7.2.250/src/version.c	2009-09-11 13:26:38.000000000 +0200
8f9c287
--- src/version.c	2009-09-11 13:43:46.000000000 +0200
8f9c287
***************
8f9c287
*** 678,679 ****
8f9c287
--- 678,681 ----
8f9c287
  {   /* Add new patch number below this line */
8f9c287
+ /**/
8f9c287
+     251,
8f9c287
  /**/
8f9c287
8f9c287
-- 
8f9c287
hundred-and-one symptoms of being an internet addict:
8f9c287
225. You sign up for free subscriptions for all the computer magazines
8f9c287
8f9c287
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8f9c287
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8f9c287
\\\        download, build and distribute -- http://www.A-A-P.org        ///
8f9c287
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///