Alexandre Julliard : kernel32: Use debugstr_a to avoid overflow with user-specified string.
Module: wine Branch: master Commit: 0fd822f46526df49f5fa29627afbace7ce3d242c URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fd822f46526df49f5fa29627a... Author: Alexandre Julliard <julliard(a)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 */
participants (1)
-
Alexandre Julliard