relayd: fix: rotate_truncate_stream() assumes non-null next chunk
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 11 Sep 2019 16:03:38 +0000 (12:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commit94a74983e5e660eef7678f5a18d3181d0e511a75
tree6f28ce1b11ca7c5dc0c376eb54664f1b3e398ffa
parente0e4d1964e1f3eba13c28b1300c5c77833d1fbee
relayd: fix: rotate_truncate_stream() assumes non-null next chunk

While the protocol doesn't allow a stream rotation position in the
past when rotating to a "NULL" trace chunk, a misbehaving peer could
express this. Report the protocol error and abort the truncation
operation in this case.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/stream.c
This page took 0.028127 seconds and 4 git commands to generate.