Fix a memcpy in ipmitool that should be a memmove. Reported by Jiri B.
This commit is contained in:
parent
1af8fb9ec0
commit
38c186471a
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2014/11/28 23:48:16 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2015/04/30 14:27:54 sthen Exp $
|
||||
|
||||
COMMENT= manage and configure devices that supports IPMI
|
||||
|
||||
DISTNAME= ipmitool-1.8.15
|
||||
REVISION= 0
|
||||
CATEGORIES= sysutils
|
||||
|
||||
HOMEPAGE= http://ipmitool.sourceforge.net/
|
||||
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_plugins_lanplus_lanplus_c,v 1.1 2015/04/30 14:27:54 sthen Exp $
|
||||
--- 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],
|
Loading…
Reference in New Issue
Block a user