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/53341b8268a7
branches: trunk
changeset: 976352:53341b8268a7
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 ff97272edc0f -r 53341b8268a7 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