Module: wine Branch: master Commit: f21b91c0a2d454d9e757ee14914ba944f224af36 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f21b91c0a2d454d9e757ee1491...
Author: Rob Shearman rob@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;