moving the 1MB copy buffer from the stack to the heap solves the problem that was first observed on the Windows buildbot.