From d129aa69b21333c690fa472716c3e7e15b906e94 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 16 May 2015 17:00:09 +0200 Subject: [PATCH] cvs: fix bug in gnulib crashing with FORTIFY_SOURCE=2. --- srcpkgs/cvs/patches/vasnprintf.diff | 16 ++++++++++++++++ srcpkgs/cvs/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/cvs/patches/vasnprintf.diff diff --git a/srcpkgs/cvs/patches/vasnprintf.diff b/srcpkgs/cvs/patches/vasnprintf.diff new file mode 100644 index 00000000000..f6647177a88 --- /dev/null +++ b/srcpkgs/cvs/patches/vasnprintf.diff @@ -0,0 +1,16 @@ +--- lib/vasnprintf.c.orig 2015-05-16 16:57:13.712246576 +0200 ++++ lib/vasnprintf.c 2015-05-16 16:57:38.471145720 +0200 +@@ -557,13 +557,7 @@ + break; + } + *p = dp->conversion; +-#if USE_SNPRINTF +- p[1] = '%'; +- p[2] = 'n'; +- p[3] = '\0'; +-#else + p[1] = '\0'; +-#endif + + /* Construct the arguments for calling snprintf or sprintf. */ + prefix_count = 0; diff --git a/srcpkgs/cvs/template b/srcpkgs/cvs/template index 60f999cd2c0..2e0cfb41dac 100644 --- a/srcpkgs/cvs/template +++ b/srcpkgs/cvs/template @@ -1,7 +1,7 @@ # Template file for 'cvs' pkgname=cvs version=1.12.13 -revision=3 +revision=4 build_style=gnu-configure configure_args="--with-editor=/usr/bin/vi --with-external-zlib ac_cv_func_working_mktime=yes" # broken test upstream