Paul Gofman : server: Check reply size when copying key full name.
Alexandre Julliard
julliard at winehq.org
Tue Oct 6 15:33:11 CDT 2020
Module: wine
Branch: master
Commit: 886acfad379b653e4370e8172c5f7fae257b627c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=886acfad379b653e4370e8172c5f7fae257b627c
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Tue Oct 6 15:05:18 2020 +0300
server: Check reply size when copying key full name.
Fixes segfault in wineserver during ntdll reg test.
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/registry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/registry.c b/server/registry.c
index 3b2d59fc72..a84a747174 100644
--- a/server/registry.c
+++ b/server/registry.c
@@ -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
{
More information about the wine-cvs
mailing list