[xiph-commits] r11571 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Tue Jun 13 23:44:35 PDT 2006


Author: jm
Date: 2006-06-13 23:44:33 -0700 (Tue, 13 Jun 2006)
New Revision: 11571

Modified:
   trunk/speex/libspeex/stack_alloc.h
Log:
Fixed unsafe macro in stack_alloc.h


Modified: trunk/speex/libspeex/stack_alloc.h
===================================================================
--- trunk/speex/libspeex/stack_alloc.h	2006-06-14 05:57:17 UTC (rev 11570)
+++ trunk/speex/libspeex/stack_alloc.h	2006-06-14 06:44:33 UTC (rev 11571)
@@ -114,7 +114,7 @@
 #define ALLOC(var, size, type) type var[size]
 #elif defined(USE_ALLOCA)
 #define VARDECL(var) var
-#define ALLOC(var, size, type) var = alloca(sizeof(type)*size)
+#define ALLOC(var, size, type) var = alloca(sizeof(type)*(size))
 #else
 #define VARDECL(var) var
 #define ALLOC(var, size, type) var = PUSH(stack, size, type)



More information about the commits mailing list