projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
397463f
)
tools: xen-xsplice.c: fix length parameter of memset in list_func
author
Wei Liu
<wei.liu2@citrix.com>
Sun, 1 May 2016 18:21:45 +0000
(19:21 +0100)
committer
Wei Liu
<wei.liu2@citrix.com>
Mon, 2 May 2016 09:21:35 +0000
(10:21 +0100)
The length expression should be the same one used in malloc.
CID:
1358947
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/misc/xen-xsplice.c
patch
|
blob
|
history
diff --git
a/tools/misc/xen-xsplice.c
b/tools/misc/xen-xsplice.c
index 0f1ab5a363690efad616ec7003091148014bf0c9..b3bf04843d0d36ddf9c01e9a4fbbe2cb56aa8c4b 100644
(file)
--- a/
tools/misc/xen-xsplice.c
+++ b/
tools/misc/xen-xsplice.c
@@
-95,7
+95,7
@@
static int list_func(int argc, char *argv[])
done = 0;
/* The memset is done to catch errors. */
memset(info, 'A', sizeof(*info) * MAX_LEN);
- memset(name, 'B', sizeof(*name
* MAX_LEN * XEN_XSPLICE_NAME_SIZE)
);
+ memset(name, 'B', sizeof(*name
) * MAX_LEN * XEN_XSPLICE_NAME_SIZE
);
memset(len, 'C', sizeof(*len) * MAX_LEN);
rc = xc_xsplice_list(xch, MAX_LEN, idx, info, name, len, &done, &left);
if ( rc )