Fix invalid pointer dereference in wcscpy_chk
commite5ece9de1417ac33c755226f3dd962fc2c7d97aa
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 21 Jun 2022 13:43:30 +0000 (21 14:43 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Oct 2022 10:15:28 +0000 (28 11:15 +0100)
tree72d9ba8fe793359b1ba5a8353d75e2c4d7439247
parent09c6c6073c925235b385af1d8edf6bc853eeaf60
Fix invalid pointer dereference in wcscpy_chk

The src pointer is const and points to a different object, so accessing
dest via src is invalid.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
debug/wcscpy_chk.c