vt: fix memory overlapping when deleting chars in the buffer
JIRA: https://issues.redhat.com/browse/RHEL-27780
JIRA: https://issues.redhat.com/browse/RHEL-27781
CVE: CVE-2022-48627
Fix a memory overlapping copy occurs when deleting a long line bug in tty.
Signed-off-by: Waiman Long longman@redhat.com
Edited by Waiman Long