bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-diffutils] Building diffutils 3.3 with hardening flags


From: Santiago Vila
Subject: Re: [bug-diffutils] Building diffutils 3.3 with hardening flags
Date: Mon, 12 Aug 2013 22:43:36 +0200 (CEST)
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)

On Mon, 12 Aug 2013, Paul Eggert wrote:

> Santiago Vila wrote:
> > I wish there were a more simple way to fix this.
> 
> Does this work around the problem?

Almost. This is what works for me:

--- a/gnulib-tests/test-xvasprintf.c
+++ b/gnulib-tests/test-xvasprintf.c
@@ -95,7 +95,7 @@
   {
     /* Silence gcc warning about zero-length format string.  */
     const char *empty = "";
-    result = xasprintf (empty);
+    result = xasprintf (empty, empty);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "") == 0);
     free (result);

I can now build diffutils 3.3 but there is still another problem which I'll 
report separately.

Thanks a lot.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]