projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38476d2
)
Fix: wrong size in memcpy of kernel channel padding
author
David Goulet
<dgoulet@efficios.com>
Tue, 28 May 2013 18:57:05 +0000
(14:57 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Tue, 28 May 2013 18:57:05 +0000
(14:57 -0400)
Issue
1019925
of coverity scan.
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/kernel-ctl/kernel-ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/common/kernel-ctl/kernel-ctl.c
b/src/common/kernel-ctl/kernel-ctl.c
index b45efd0efa1dc7e6b5e8520419d9f7f6dff99ebd..d850f38c0337bdf53bc690f15240a82163ac66f8 100644
(file)
--- a/
src/common/kernel-ctl/kernel-ctl.c
+++ b/
src/common/kernel-ctl/kernel-ctl.c
@@
-99,7
+99,7
@@
int kernctl_open_metadata(int fd, struct lttng_channel_attr *chops)
channel.switch_timer_interval = chops->switch_timer_interval;
channel.read_timer_interval = chops->read_timer_interval;
channel.output = chops->output;
channel.switch_timer_interval = chops->switch_timer_interval;
channel.read_timer_interval = chops->read_timer_interval;
channel.output = chops->output;
- memcpy(channel.padding, chops->padding, sizeof(ch
annel.
padding));
+ memcpy(channel.padding, chops->padding, sizeof(ch
ops->
padding));
return ioctl(fd, LTTNG_KERNEL_METADATA, &channel);
}
return ioctl(fd, LTTNG_KERNEL_METADATA, &channel);
}
@@
-134,7
+134,7
@@
int kernctl_create_channel(int fd, struct lttng_channel_attr *chops)
channel.switch_timer_interval = chops->switch_timer_interval;
channel.read_timer_interval = chops->read_timer_interval;
channel.output = chops->output;
channel.switch_timer_interval = chops->switch_timer_interval;
channel.read_timer_interval = chops->read_timer_interval;
channel.output = chops->output;
- memcpy(channel.padding, chops->padding, sizeof(ch
annel.
padding));
+ memcpy(channel.padding, chops->padding, sizeof(ch
ops->
padding));
return ioctl(fd, LTTNG_KERNEL_CHANNEL, &channel);
}
return ioctl(fd, LTTNG_KERNEL_CHANNEL, &channel);
}
This page took
0.025864 seconds
and
4
git commands to generate.