Fix: source.ctf.fs: 0-length packet index length causes SIGFPE
[babeltrace.git] / src / plugins / ctf / fs-src / lttng-index.h
index 237477196cfce32f001e48b51d72abde6982c900..70462e7b2e68e519e0c884d472a054bf0bc7f8c4 100644 (file)
 #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
+#define CTF_INDEX_1_0_SIZE offsetof(struct ctf_packet_index, stream_instance_id)
 
 /*
  * Header at the beginning of each index file.
This page took 0.022797 seconds and 4 git commands to generate.