server: Check reply size when copying key full name.

Fixes segfault in wineserver during ntdll reg test.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-10-06 15:05:18 +03:00 committed by Alexandre Julliard
parent 9cb5077096
commit 886acfad37

View file

@ -978,7 +978,7 @@ static void enum_key( struct key *key, int index, int info_class, struct enum_ke
else if (info_class == KeyNameInformation)
{
reply->namelen = namelen;
memcpy( data, fullname, namelen );
memcpy( data, fullname, len );
}
else
{