Rob Shearman : dbghelp: Fix read beyond end of field in module_get_debug.
Alexandre Julliard
julliard at winehq.org
Fri Feb 22 05:49:29 CST 2008
Module: wine
Branch: master
Commit: f21b91c0a2d454d9e757ee14914ba944f224af36
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f21b91c0a2d454d9e757ee14914ba944f224af36
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Feb 21 16:44:24 2008 +0000
dbghelp: Fix read beyond end of field in module_get_debug.
---
dlls/dbghelp/module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c
index 3f7fe7a..64e821f 100644
--- a/dlls/dbghelp/module.c
+++ b/dlls/dbghelp/module.c
@@ -308,7 +308,7 @@ BOOL module_get_debug(struct module_pair* pair)
idslW64.CheckSum = pair->effective->module.CheckSum;
idslW64.TimeDateStamp = pair->effective->module.TimeDateStamp;
memcpy(idslW64.FileName, pair->effective->module.ImageName,
- sizeof(idslW64.FileName));
+ sizeof(pair->effective->module.ImageName));
idslW64.Reparse = FALSE;
idslW64.hFile = INVALID_HANDLE_VALUE;
More information about the wine-cvs
mailing list