Stuart Henderson
2015-04-30 14:31:08 UTC
Hi, this diff fixes a backwards memcpy in lanplus.
--- src/plugins/lanplus/lanplus.c.orig Thu Apr 30 15:23:08 2015
+++ src/plugins/lanplus/lanplus.c Thu Apr 30 15:24:19 2015
@@ -760,7 +760,7 @@ ipmi_lan_poll_recv(struct ipmi_intf * intf)
if (rsp->data_len &&
rsp->payload.ipmi_response.cmd == 0x34) {
- memcpy(rsp->data, &rsp->data[offset],
+ memmove(rsp->data, &rsp->data[offset],
(rsp->data_len-offset));
if (verbose > 2)
printbuf( &rsp->data[offset],
--- src/plugins/lanplus/lanplus.c.orig Thu Apr 30 15:23:08 2015
+++ src/plugins/lanplus/lanplus.c Thu Apr 30 15:24:19 2015
@@ -760,7 +760,7 @@ ipmi_lan_poll_recv(struct ipmi_intf * intf)
if (rsp->data_len &&
rsp->payload.ipmi_response.cmd == 0x34) {
- memcpy(rsp->data, &rsp->data[offset],
+ memmove(rsp->data, &rsp->data[offset],
(rsp->data_len-offset));
if (verbose > 2)
printbuf( &rsp->data[offset],