From: Mathieu Desnoyers Date: Tue, 9 Feb 2016 18:27:22 +0000 (-0500) Subject: Fix: out-of-bound memory access X-Git-Tag: v1.3.2~2 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=0e1b84aa80398d5573b73ae4d6ae79d6a930a2fd;hp=0e1b84aa80398d5573b73ae4d6ae79d6a930a2fd;p=babeltrace.git Fix: out-of-bound memory access We need to check for end of stream before updating the current packet index, else we access memory beyond the last stream packet index array element. This fixes valgrind errors which appear at commit 480ef05 Support ctf index version 1.1 due to change of the element size, but actually caused by commit 2654fe9 Fix: events discarded timing inaccuracy Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---