3698. [cleanup] Replaced all uses of memcpy() with memmove(). [RT #35120] (cherry picked from commit ebe54c7d2221c6a0a4b3d96bcae3280c823a45e6) (cherry picked from commit 9b950c70f1a6406c0f3dff604822329d06fc4837)