projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: source.ctf.fs: 0-length packet index length causes SIGFPE
[babeltrace.git]
/
src
/
plugins
/
ctf
/
fs-src
/
lttng-index.h
diff --git
a/src/plugins/ctf/fs-src/lttng-index.h
b/src/plugins/ctf/fs-src/lttng-index.h
index 237477196cfce32f001e48b51d72abde6982c900..70462e7b2e68e519e0c884d472a054bf0bc7f8c4 100644
(file)
--- a/
src/plugins/ctf/fs-src/lttng-index.h
+++ b/
src/plugins/ctf/fs-src/lttng-index.h
@@
-25,11
+25,13
@@
#ifndef LTTNG_INDEX_H
#define LTTNG_INDEX_H
#ifndef LTTNG_INDEX_H
#define LTTNG_INDEX_H
+#include <stddef.h>
#include "compat/limits.h"
#define CTF_INDEX_MAGIC 0xC1F1DCC1
#define CTF_INDEX_MAJOR 1
#define CTF_INDEX_MINOR 1
#include "compat/limits.h"
#define CTF_INDEX_MAGIC 0xC1F1DCC1
#define CTF_INDEX_MAJOR 1
#define CTF_INDEX_MINOR 1
+#define CTF_INDEX_1_0_SIZE offsetof(struct ctf_packet_index, stream_instance_id)
/*
* Header at the beginning of each index file.
/*
* Header at the beginning of each index file.
This page took
0.022836 seconds
and
4
git commands to generate.