Module Name: src Committed By: christos Date: Sun Sep 20 21:18:45 UTC 2020
Modified Files: src/external/gpl3/gdb/dist/gdbsupport: agent.cc Log Message: zero out the sockaddr, so that the length it guaranteed to be 0. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdbsupport/agent.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdbsupport/agent.cc diff -u src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.1.1.1 src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.2 --- src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.1.1.1 Mon Sep 14 21:43:49 2020 +++ src/external/gpl3/gdb/dist/gdbsupport/agent.cc Sun Sep 20 17:18:45 2020 @@ -153,6 +153,7 @@ gdb_connect_sync_socket (int pid) return -1; } + memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_UNIX; res = xsnprintf (addr.sun_path, UNIX_PATH_MAX, "%s", path);