[Bug 7214] wine_dbg_vprintf: debugstr buffer overflow (contents: 'err:msvcrt:demangle_datatype Unknown type ')

Wine Bugs wine-bugs at winehq.org
Sun Jan 21 13:18:50 CST 2007


------- Additional Comments From xerox_xerox2000 at yahoo.co.uk  2007-21-01 13:18 -------
>Does the same apply when you rebuild from scratch ?
 I always do a "rebuild all" , which compiles everything from scratch. 

I'm not sure whether it's a bug that 'dt' is zero in demangle_datatype, but that
seems to be the reason it crashes, when it tries to print the error. The crash
is easy to reproduce (very dumb example):

1. For example apply the patch below:

diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c
index eaa0f70..4bf86d5 100644
--- a/dlls/kernel32/sync.c
+++ b/dlls/kernel32/sync.c
@@ -86,7 +86,12 @@ HANDLE get_BaseNamedObjects_handle(void)
  *              Sleep  (KERNEL32.@)
 VOID WINAPI Sleep( DWORD timeout )
+{char c;
+int i;
+ERR("this will crash %c\n",c);
     SleepEx( timeout, FALSE );

2. Run the following program:

#include "windows.h"
int main()

You'll get the same crash...

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the wine-bugs mailing list