Alexandre Julliard : kernel32: Use debugstr_a to avoid overflow with user-specified string.
Alexandre Julliard
julliard at winehq.org
Mon Feb 21 10:56:57 CST 2011
Module: wine
Branch: master
Commit: 0fd822f46526df49f5fa29627afbace7ce3d242c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fd822f46526df49f5fa29627afbace7ce3d242c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Feb 19 13:06:40 2011 +0100
kernel32: Use debugstr_a to avoid overflow with user-specified string.
---
dlls/kernel32/debugger.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/debugger.c b/dlls/kernel32/debugger.c
index e9b5992..3abffdf 100644
--- a/dlls/kernel32/debugger.c
+++ b/dlls/kernel32/debugger.c
@@ -253,7 +253,7 @@ void WINAPI OutputDebugStringA( LPCSTR str )
}
SERVER_END_REQ;
- WARN("%s\n", str);
+ WARN("%s\n", debugstr_a(str));
/* send string to a system-wide monitor */
/* FIXME should only send to monitor if no debuggers are attached */
More information about the wine-cvs
mailing list