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