Returning pointers to stack allocated variables has undefined behavior depending on the compiler and optimization settings.
Merge branch 'fix-invalid-array-return' into wakame-edge