]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces: fix out-of-bound access when getting permanent MAC address
authorVincent Bernat <vincent@bernat.im>
Mon, 12 Mar 2018 16:29:09 +0000 (17:29 +0100)
committerVincent Bernat <vincent@bernat.im>
Mon, 12 Mar 2018 16:29:09 +0000 (17:29 +0100)
commit8505c2956a7403a8d0ac7cfc197b641747ff71a7
tree597a3fa407e887fa83e8a2ba5e741bf054066741
parent989d5a545ab877fb992c2232c47f98b234e38186
interfaces: fix out-of-bound access when getting permanent MAC address

Also, use a classic malloc() instead of a weird union. This makes
compilers better to catch this kind of error (at least on runtime with
sanitizers).
src/daemon/interfaces-linux.c