CVS: winex/dlls/ntdll debugtools.c,1.22,1.23
[email protected] 31 Aug 2007 12:55:25 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/dlls/ntdll debugtools.c,1.22,1.23Update of /var/lib/cvsd/cvsroot/winex/dlls/ntdll
In directory agravaine:/tmp/cvs-serv3518/dlls/ntdll
Modified Files:
debugtools.c
Log Message:
made an abort message more obvious and helpful
trac #2034
- made the wine_dbg_vprintf() buffer overflow abort message a little more obvious and give some more context information about why it quit.
Index: debugtools.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/ntdll/debugtools.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- debugtools.c 29 Mar 2007 14:01:45 -0000 1.22
+++ debugtools.c 31 Aug 2007 12:55:22 -0000 1.23
@@ -428,8 +428,8 @@
* debug output */
if ((ret == -1) || (ret >= sizeof(info->output) - (info->out_pos - info->output)))
{
- fprintf( stderr, "wine_dbg_vprintf: debugstr buffer overflow (contents: '%s')\n",
- info->output);
+ fprintf( stderr, "err:wine_dbg_vprintf: !!FATAL!! debugstr buffer overflow (contents: '%s', ret = %d, sizeof(output) = %lu, out_pos = %p, output = %p, spaceLeft = %ld)\nAborting...\n",
+ info->output, ret, sizeof(info->output), info->out_pos, info->output, sizeof(info->output) - (info->out_pos - info->output));
info->out_pos = info->output;
abort();
}