Fix ust app tracepoint list realloc
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Dec 2011 18:24:36 +0000 (13:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Dec 2011 18:24:36 +0000 (13:24 -0500)
commit815564d8f9c161183f092e40561cbb26f2024fc8
tree1b1e5e80b56d4583ab3a490b2248b7c4b8f1d81a
parent8f69e5eb13ccfc939f1a014d7244c687e1a49450
Fix ust app tracepoint list realloc

- memcpy data _after_ reallocation (corruption fix),
- fix off-by-one in size check (corruption fix),
- multiply size by 2 each time size increase is needed (optimisation).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-sessiond/ust-app.c
This page took 0.024879 seconds and 4 git commands to generate.