ffi call can allocate an arbitrary amount of memory with alloca()
ffi call can allocate an arbitrary amount of memory with alloca(): all you need is to call a function 'f(int[])' with as argument a Python list of arbitrary many integers. This kind of case should instead of malloc().