Commit 886acfad authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

server: Check reply size when copying key full name.

Fixes segfault in wineserver during ntdll reg test. Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9cb50770
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment