Signed-off-by: Julien Desfossez <[email protected]>
---
 formats/ctf/ctf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c
index 5f263cd..477392b 100644
--- a/formats/ctf/ctf.c
+++ b/formats/ctf/ctf.c
@@ -476,6 +476,10 @@ int ctf_read_event(struct bt_stream_pos *ppos, struct 
ctf_stream_definition *str
                /* Stream is inactive for now (live reading). */
                return EAGAIN;
        }
+       /* Packet only contains headers */
+       if (pos->offset == pos->content_size)
+               return EOF;
+
        assert(pos->offset < pos->content_size);
 
        /* Read event header */
-- 
1.8.3.2


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to