Use memmove instead of memcpy for overlapping copy (#47468)
memcpy is defined to only work when the source and destination memory regions do not overlap. In here, they do. So let's use memmove instead.
Showing
想要评论请 注册 或 登录
memcpy is defined to only work when the source and destination memory regions do not overlap. In here, they do. So let's use memmove instead.