Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdbsupport zero out the sockaddr, so ...
details: https://anonhg.NetBSD.org/src/rev/b096d9b4d6d4
branches: trunk
changeset: 938935:b096d9b4d6d4
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 20 21:18:45 2020 +0000
description:
zero out the sockaddr, so that the length it guaranteed to be 0.
diffstat:
external/gpl3/gdb/dist/gdbsupport/agent.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 1d801f451c64 -r b096d9b4d6d4 external/gpl3/gdb/dist/gdbsupport/agent.cc
--- a/external/gpl3/gdb/dist/gdbsupport/agent.cc Sun Sep 20 20:34:42 2020 +0000
+++ b/external/gpl3/gdb/dist/gdbsupport/agent.cc Sun Sep 20 21:18:45 2020 +0000
@@ -153,6 +153,7 @@
return -1;
}
+ memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
res = xsnprintf (addr.sun_path, UNIX_PATH_MAX, "%s", path);
Home |
Main Index |
Thread Index |
Old Index