msvcrt: Write memory forward in memset.
commit7c046c7afd4253daa9cd8dbb6b2f466f128fecc9
authorRémi Bernon <rbernon@codeweavers.com>
Thu, 21 Oct 2021 08:44:29 +0000 (21 10:44 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 25 Oct 2021 19:16:29 +0000 (25 21:16 +0200)
treec45ac8170b1782b2b8ced6bf24bba3d35a7097f0
parentf7ac9f309f2964e131c8e60c5ff3a878b67b2e32
msvcrt: Write memory forward in memset.

Instead of going backward, which breaks the Linux kernel transparent
huge pages allocation assumptions.

This can be reproduced by calling memset on large, newly allocated,
memory regions.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/string.c