linux/tools/lib/traceevent
Namhyung Kim d1de108709 tools lib traceevent: Fix a possibly wrong memory dereference
If set_op_prio() failed, the token will be freed at out_free,
then arg->op.op would turn out to be a dangle pointer. After
returning EVENT_ERROR from process_op(), free_arg() will be
called and then it will finally see the dangling pointer.

Cc: Borislav Petkov <bp@alien8.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337740619-27925-13-git-send-email-namhyung.kim@lge.com
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-05-24 11:33:34 -03:00
..
event-parse.c tools lib traceevent: Fix a possibly wrong memory dereference 2012-05-24 11:33:34 -03:00
event-parse.h parse-events: Rename struct record to struct pevent_record 2012-04-25 13:35:48 +02:00
event-utils.h events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00
Makefile
parse-filter.c parse-events: Rename struct record to struct pevent_record 2012-04-25 13:35:48 +02:00
parse-utils.c
trace-seq.c events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00