Merge "Use memmove for overlapping memory blocks in preprocessing."