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>
Fri, 21 Feb 2014 16:59:52 +0000 (11:59 -0500)
commitbedf64a9bfdf8fffefd7ced1ea3993a1b5852e6d
treed661985ea7d88e8d32bbd51facadd69b8b69c439
parent919bd0236b6b419217e1ad969301bf6efa3d7f67
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.025086 seconds and 4 git commands to generate.