chainsaw    14/05/13 12:31:24

  Added:                0.2.2-debug.patch 0.2.2-memset.patch
  Log:
  Squelch debugging in a slightly cleaner way. Fix MD5 memset as per GCC 
warning.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
0xB5058F9A)

Revision  Changes    Path
1.1                  net-libs/iax/files/0.2.2-debug.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iax/files/0.2.2-debug.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iax/files/0.2.2-debug.patch?rev=1.1&content-type=text/plain

Index: 0.2.2-debug.patch
===================================================================
diff -uNr iax-0.2.2.ORIG/configure.in iax-0.2.2/configure.in
--- iax-0.2.2.ORIG/configure.in 2014-05-13 13:23:35.083867921 +0100
+++ iax-0.2.2/configure.in      2014-05-13 13:24:25.879870451 +0100
@@ -25,6 +25,8 @@
 fi
 
 if test "$enable_extreme_debug" = yes ; then
+       AC_DEFINE(DEBUG_SUPPORT)
+       AC_DEFINE(DEBUG_DEFAULT)
        AC_DEFINE(EXTREME_DEBUG)
 fi
 
diff -uNr iax-0.2.2.ORIG/src/Makefile.am iax-0.2.2/src/Makefile.am
--- iax-0.2.2.ORIG/src/Makefile.am      2014-05-13 13:23:35.082867921 +0100
+++ iax-0.2.2/src/Makefile.am   2014-05-13 13:24:32.439870777 +0100
@@ -1,5 +1,4 @@
 CFLAGS += -g -Wall -Wstrict-prototypes -I .
-CFLAGS += -DDEBUG_SUPPORT -DDEBUG_DEFAULT 
 CFLAGS += $(UCFLAGS)
 
 



1.1                  net-libs/iax/files/0.2.2-memset.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iax/files/0.2.2-memset.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iax/files/0.2.2-memset.patch?rev=1.1&content-type=text/plain

Index: 0.2.2-memset.patch
===================================================================
diff -uNr iax-0.2.2.ORIG/src/md5.c iax-0.2.2/src/md5.c
--- iax-0.2.2.ORIG/src/md5.c    2014-05-13 13:26:51.570877706 +0100
+++ iax-0.2.2/src/md5.c 2014-05-13 13:27:08.567878553 +0100
@@ -165,7 +165,7 @@
     MD5Transform(ctx->buf, (uint32 *) ctx->in);
     byteReverse((unsigned char *) ctx->buf, 4);
     memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));       /* In case it's sensitive */
+    memset(ctx, 0, sizeof(*ctx));      /* In case it's sensitive */
 }
 
 #ifndef ASM_MD5




Reply via email to