Fix: Don't create a new packet if ctf_move_pos() seeks out of a packet
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Oct 2013 17:23:46 +0000 (13:23 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 31 Oct 2013 13:19:16 +0000 (09:19 -0400)
commit42d07a0f97d1d8a1fda344a8eb912c82feb8dea8
treed62ccd128fdc049dcadc8c46335a43670be51a6b
parent27611b66503a0c7f8bcb4a1be285e78d4f9cdbe3
Fix: Don't create a new packet if ctf_move_pos() seeks out of a packet

This change ensures that ctf_move_pos() does not create a new packet
when ctf_move_pos() moves out of the current packet's bounds. The next
call to ctf_pos_access_ok() will report EFAULT which can then be
handled appropriately by the caller.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/babeltrace/ctf/types.h
This page took 0.026595 seconds and 4 git commands to generate.