This is a note to anyone using C-block creation and uses arrays in the code:
Make sure you array bounds check!
In general, this is a requirement for C, C++ and C#. The generated code does NOT perform automatic array bounds checking. This must be explicitly done in your code. Ignoring this caution will yield undesirable results.
If you exceed the array bounds, you will pick up data in the neighboring memory of your targeted array.
I hope this helps someone who might have similar issues to what I experienced.