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/43002e047a2e
branches: trunk
changeset: 955128:43002e047a2e
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 8c5e0613f970 -r 43002e047a2e 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