projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: possible use after free in consumer
[lttng-tools.git]
/
src
/
common
/
consumer.h
diff --git
a/src/common/consumer.h
b/src/common/consumer.h
index 2003cbe43003f304c7bf60387416b9a5c8a1da76..59499f5b511816eaf185782283271ac949f64345 100644
(file)
--- a/
src/common/consumer.h
+++ b/
src/common/consumer.h
@@
-221,6
+221,8
@@
struct lttng_consumer_stream {
int out_fd; /* output file to write the data */
/* Write position in the output file descriptor */
off_t out_fd_offset;
int out_fd; /* output file to write the data */
/* Write position in the output file descriptor */
off_t out_fd_offset;
+ /* Amount of bytes written to the output */
+ uint64_t output_written;
enum lttng_consumer_stream_state state;
int shm_fd_is_copy;
int data_read;
enum lttng_consumer_stream_state state;
int shm_fd_is_copy;
int data_read;
@@
-490,7
+492,7
@@
struct lttng_consumer_global_data {
/*
* Init consumer data structures.
*/
/*
* Init consumer data structures.
*/
-
void
lttng_consumer_init(void);
+
int
lttng_consumer_init(void);
/*
* Set the error socket for communication with a session daemon.
/*
* Set the error socket for communication with a session daemon.
This page took
0.023924 seconds
and
4
git commands to generate.