Module: xenomai-3
Branch: stable-3.0.x
Commit: d18c8ad0b824b9c98c2925e3f50dbfd836060576
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d18c8ad0b824b9c98c2925e3f50dbfd836060576

Author: Norbert Lange <nolang...@gmail.com>
Date:   Wed Apr 25 15:05:00 2018 +0200

smokey/net_common: fix one out-of-bounds access

Signed-off-by: Norbert Lange <norbert.la...@andritz.com>

---

 testsuite/smokey/net_common/smokey_net_server.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/net_common/smokey_net_server.c 
b/testsuite/smokey/net_common/smokey_net_server.c
index a0ed52f..2e19208 100644
--- a/testsuite/smokey/net_common/smokey_net_server.c
+++ b/testsuite/smokey/net_common/smokey_net_server.c
@@ -89,7 +89,7 @@ rtnet_rtcfg_add_client(int fd, const char *hwaddr, const char 
*ipaddr)
        cmd.args.add.ip_addr = ip.s_addr;
        cmd.args.add.timeout = 3000;
        memcpy(cmd.args.add.mac_addr, mac.ether_addr_octet,
-               sizeof(cmd.args.add.mac_addr));
+               sizeof(mac.ether_addr_octet));
 
        check_unix(ioctl(fd, RTCFG_IOC_ADD, &cmd));
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to