dbghelp crashes

Eric Pouech pouech-eric at wanadoo.fr
Sun Jun 27 03:51:54 CDT 2004

Jon Griffiths a écrit :
> Hi,
> Some overly long stabs cause crashes when debug tracing is enabled.
> Cheers,
> Jon
>    +dlls/dbghelp/stabs.c
>    Prevent the debug buffer from overflowing on long stabs
You shouldn't use debugstr_an with a fixed value, since all strings are 
'\0' terminated.
Either fix dlls/ntdll/debugtools.c to handle properly those long string 
conditions (and remove the ugly call to abort()), or use min(256, 
strlen(ptr)) as the actual length of the string in debugstr_an calls.
I'd prefer the first solution.

More information about the wine-devel mailing list