Propagate error from packet_seek in case of truncated packet
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 7 Feb 2018 22:52:05 +0000 (17:52 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 20 Feb 2018 18:55:40 +0000 (13:55 -0500)
commitdb8c6984d42833647909c099e272dfd364053eba
tree4064a55e1ae2ca10d6b523fbbd77c94a3106a56a
parent7f965b97207a777ffd9b6b9e5bff514067aa9f5f
Propagate error from packet_seek in case of truncated packet

Report the error all the way up allowing users/scripts to perform error
detection and act on it.

Print to stderr the truncated packet information for easier
identification.

Introduce bt_packet_seek_error enum for specific error handling.

Use the ERANGE errno for error propagation inside bt_iter_next and
ctf_read_event.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/babeltrace.c
formats/ctf/ctf.c
formats/lttng-live/lttng-live-comm.c
include/babeltrace/error.h
lib/iterator.c
This page took 0.025442 seconds and 4 git commands to generate.