Security: Changes to f_memory_array_increase() API causes invalid memory access.
This is a security related regression.
The `f_memory_array_increase()` has been changed to only guarantee that at least 1 element is increased if not available.
The code is Controller is depending on the old behavior where the allocation step is guaranteed.
The new behavior of `f_memory_array_increase()` performs additional steps to prevent memory abuse which in tern causes the first allocation to only consist of a single element.
Use instead `f_memory_array_resize()` if the size is too small.
In another case, instead use `f_memory_array_increase_by()` to ensure that the increase is at least 2 elements.