https://bugs.winehq.org/show_bug.cgi?id=48174
--- Comment #18 from Nikolay Sivov bunglehead@gmail.com --- This sounds exactly like issue I was looking at, most likely game was using same engine. Tests on Windows showed that allocated vector has padding, so this null-terminator assumption works in practice.
I posted allocator change for that [1], that was basically rejected.
[1] https://github.com/mono/mono/issues/16988