https://issues.dlang.org/show_bug.cgi?id=14156 --- Comment #6 from Guillaume Chatelet <chatelet.guillaume at gmail.com> --- Thx Sobira, it makes sense. I have a pending proposal which will write the buffer at once and solve the 'memory corruption'. https://github.com/D-Programming-Language/dmd/pull/4402 --