# HG changeset patch # User Daniel Adler # Date 1450566282 0 # Node ID dc0bcee2c847f4229fd031aed4cd17b70e6375b7 # Parent b8f16ad80e347d9224b16d02f55771384ea8cb7a bugfix: value and control-group arrays need to be max-arg size + 1 (... futher cleanup is needed as index 0 in array is not used at all ;-/ ) diff -r b8f16ad80e34 -r dc0bcee2c847 test/call_suite/globals.c --- a/test/call_suite/globals.c Sat Dec 19 16:19:15 2015 +0100 +++ b/test/call_suite/globals.c Sat Dec 19 23:04:42 2015 +0000 @@ -38,10 +38,10 @@ void init_K() { int i; -#define X(CH,T,QCH) V_##CH = (T*) malloc(sizeof(T)*G_maxargs); K_##CH = (T*) malloc(sizeof(T)*G_maxargs); +#define X(CH,T,QCH) V_##CH = (T*) malloc(sizeof(T)*(G_maxargs+1)); K_##CH = (T*) malloc(sizeof(T)*(G_maxargs+1)); DEF_TYPES #undef X - for(i=0;i