Fix ctf-writer: possible use after free
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 29 Nov 2013 18:26:42 +0000 (13:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 1 Dec 2013 01:58:27 +0000 (02:58 +0100)
commit3a092c05c2cbc137ccf2ef90168540910d1653af
tree0c45c34556f4fc8470c2a7324efd3753740af177
parente69dd258fa9c5f460a9071f4c6a9fcc98aaa010e
Fix ctf-writer: possible use after free

ctf_stream_pos' base_mma member must be copied from stream->pos before
updating the final packet and content sizes. The original base_mma
structure will be reallocated if the packet is resized.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/writer/stream.c
This page took 0.024766 seconds and 4 git commands to generate.