Fix: report truncated files while reading
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 6 Feb 2018 20:40:19 +0000 (15:40 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 20 Feb 2018 19:15:58 +0000 (14:15 -0500)
commit6730cff6c77ecfc1a11a2ed9deabc945d7818b95
tree483807d313cf922c785fe3f5e3bc909bc34ed538
parenta08b9eb4dcf3e36b7ad4eafc383815379dd07208
Fix: report truncated files while reading

When index files are available, this ensures we report the issue
properly before mapping a truncated packet rather than hitting a
SIGBUS.

For traces without index files, remove the check that was done at
index creation, and use the new check done when mapping the packet
instead. This ensures babeltrace can print stream data prior to the
truncated packet for this stream.

TODO: What is _not_ done in this patch is changing handling of truncated
packets: this should be treated as a warning rather than an error, so
processing of other streams continue.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
CC: Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
CC: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ctf.c
include/babeltrace/ctf/types.h
This page took 0.025156 seconds and 4 git commands to generate.