]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbsupport/ChangeLog
Preinitialize the sockaddr_un variable to zero
authorKamil Rytarowski <n54@gmx.com>
Wed, 23 Sep 2020 02:20:05 +0000 (04:20 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 1 Oct 2020 22:38:12 +0000 (00:38 +0200)
commite2a2a24a8e78427ff8667d625f5befbe88c328bb
treea2cc2e7cd4bf621d7a18ecde02f77d1ceec9cd64
parent1eb6eb795fd3479c97d8aadc4f70d6afad5f8511
Preinitialize the sockaddr_un variable to zero

Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.

Reported by Coverity.

gdbsupport/ChangeLog:

* agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
gdbsupport/ChangeLog
gdbsupport/agent.cc