You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
- Pack integers into new arrays instead of packing in place, to avoid
segfaults when passing integer array literals to external functions.
Belonging to [master]:
- #2994
case SIMEXTARG(isInput = false, isArray = true, type_ = ty, cref = c) then
2203
2205
match expTypeShort(ty)
@@ -2223,7 +2225,7 @@ template extFunCallVardecl(SimExtArg arg, Text &varDecls, Text &auxFunction, Boo
2223
2225
else
2224
2226
let &varDecls += '<%extType(ty,true,false,false)%> <%extVarName(c)%>;<%\n%>'
2225
2227
<<
2226
-
<%extVarName(c)%> = (<%extType(ty,true,false,false)%>)<%match ty case T_COMPLEX(complexClassType=RECORD(__)) then "&" else ""%><%contextCref(c,contextFunction,&auxFunction)%>;
2228
+
<%extVarName(c)%> = (<%extType(ty,true,false,false)%>)<%match ty case T_COMPLEX(complexClassType=RECORD(__)) then "&" else ""%><%contextCref(c,contextFunction,&auxFunction)%>;<%\n%>
2227
2229
>>
2228
2230
case SIMEXTARG(outputIndex=oi, isArray=false, type_=ty, cref=c) then
2229
2231
match oi case 0 then
@@ -2319,20 +2321,17 @@ template extFunCallVarcopy(SimExtArg arg, Text &auxFunction)
2319
2321
"Helper to extFunCall."
2320
2322
::=
2321
2323
match arg
2322
-
case SIMEXTARG(isInput = true, isArray = true, type_ = ty, cref = c) then
2323
-
// Inputs that have been packed should be unpacked after the external call.
0 commit comments