[PATCH] dbghelp: Limit module name lookup to 32 characters.

Eric Pouech eric.pouech at orange.fr
Fri Sep 3 03:12:38 CDT 2021


Le 03/09/2021 à 02:11, Alistair Leslie-Hughes a écrit :
> When a module like ext-ms-win-kernel32-package-current-l1-1-0 is loaded,
> it is never matched since the Module buffer is only 32 cahracters.

Hi Alistair,


this doesn't match windows behaviour...

despite ModuleName being set to 32 characters in IMAGEHLP_MODULE64,

native dbghelp manages internally modules up to 64 characters (including 
terminating 0)

there's already a modulename field in builtin's struct module* which 
should be used (correctly set up to 64 chars)

module's name match should be made against this (with potential truncation)

and btw, there are some other places to be fixed as well (all that match 
against Module.ModuleName)

A+




More information about the wine-devel mailing list