From cf48fbcf362462969e463d123aa6e529be7f3eda Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 2 Oct 2016 07:40:36 +0200 Subject: [PATCH] winedbg: Extend buffer in packet_query_monitor_process to avoid avoid overrun/truncation. Signed-off-by: Gerald Pfeifer Signed-off-by: Alexandre Julliard --- programs/winedbg/gdbproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c index 7f0a8c9553b..f94fef5cf44 100644 --- a/programs/winedbg/gdbproxy.c +++ b/programs/winedbg/gdbproxy.c @@ -1710,7 +1710,7 @@ static void packet_query_monitor_wnd(struct gdb_context* gdbctx, int len, const static void packet_query_monitor_process(struct gdb_context* gdbctx, int len, const char* str) { HANDLE snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); - char buffer[128]; + char buffer[31+MAX_PATH]; char deco; PROCESSENTRY32 entry; BOOL ok;