mirror of https://github.com/sipwise/dhtest.git
We are copying an IPv4 address which is 32-bit, while a MAC address is 6
byte long. Use the proper size in memcpy to avoid an buffer overflow and
an out of bounds variable read.
Change-Id: Iebcee588a5d5a37af6a7ad5caa27edd85804bfc9
Warned-by: gcc
(cherry picked from commit f09fbc237e)
mr10.0
parent
6e0bdd6a91
commit
ec1484677e
Loading…
Reference in new issue