Gerald Pfeifer : winedbg: Extend buffer in packet_query_monitor_process to avoid avoid overrun/ truncation.

Alexandre Julliard julliard at winehq.org
Mon Oct 3 14:07:18 CDT 2016


Module: wine
Branch: master
Commit: cf48fbcf362462969e463d123aa6e529be7f3eda
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf48fbcf362462969e463d123aa6e529be7f3eda

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sun Oct  2 07:40:36 2016 +0200

winedbg: Extend buffer in packet_query_monitor_process to avoid avoid overrun/truncation.

Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 7f0a8c9..f94fef5 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;




More information about the wine-cvs mailing list