projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: Possible passing of NULL pointer to memcpy()
[deliverable/lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 860622d0065b9c3c80f22c32ee0b2d44b11f511d..6237d673efca6b1abd5c778949c8863be6fc72ef 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-1826,6
+1826,7
@@
static int _cmd_enable_event(struct ltt_session *session,
filter_copy = zmalloc(filter_size);
if (!filter_copy) {
ret = LTTNG_ERR_NOMEM;
+ goto error;
}
memcpy(filter_copy, filter, filter_size);
This page took
0.02543 seconds
and
5
git commands to generate.