Adjust the origin of the copy if the user passes a pointer that wasn't allocated by the runtime. Change-Id: I0aeb20195ed730857a461a53f537626ec2573fd1