Fix: Added a null pointer check to bt_ctf_field_name.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedQuoted 3 lines · * Jérémie Galarneau ([email protected]) wrote:
This function is called indirectly when calling
__repr__(print) in the python bindings on the definition object returned by theget_top_level_scopemethod thus resulting in a segmentation fault when the name attribute is not set.
merged into master and python bindings branches, thanks!
Mathieu
Quoted 29 lines
Fixes #373
Signed-off-by Jérémie Galarneau <[email protected]>--- formats/ctf/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)formats/ctf/events.c +1
-1@@ -168,7 +168,7 @@ const char *bt_ctf_event_name(const struct bt_ctf_event *ctf_event)const char *bt_ctf_field_name (const struct definition *def) { -if (!def) +if (!def || !def->name)return NULL ;return rem_ (g_quark_to_string (def->name));Signature · 7 lines
1.8.1.1 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com