adding assert for the memcpy dst/src overlapping