retrace: Prevent and warn memcpy buffer overflows.