Mercurial > hg > octave-lyh > gnulib-hg
changeset 9214:39a1b395c333
Make the buffer large enough, to avoid a buffer overflow.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 16 Sep 2007 11:42:32 +0000 |
parents | 6c916785c03e |
children | 0c37ada6e2e9 |
files | ChangeLog m4/printf.m4 |
diffstat | 2 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-09-16 Bruno Haible <bruno@clisp.org> + + * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE, + gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000. + Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2. + Reported by Greg Schafer <gschafer@zip.com.au>. + 2007-09-15 Bruno Haible <bruno@clisp.org> * gnulib-tool (sed): Try a little harder to make bash understand the
--- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,4 +1,4 @@ -# printf.m4 serial 15 +# printf.m4 serial 16 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -95,7 +95,7 @@ AC_TRY_RUN([ #include <stdio.h> #include <string.h> -static char buf[100]; +static char buf[10000]; int main () { buf[0] = '\0'; @@ -156,7 +156,7 @@ } return 0; } -static char buf[100]; +static char buf[10000]; static double zero = 0.0; int main () { @@ -261,7 +261,7 @@ } return 0; } -static char buf[100]; +static char buf[10000]; static long double zeroL = 0.0L; int main () {