Project

General

Profile

Actions

Bug #323

closed

segfault when passing a NULL bt_context or bt_ctf_event

Added by Danny Serres over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Start date:
08/09/2012
Due date:
% Done:

0%

Estimated time:

Description

When calling a function requiring a struct bt_context or a struct bt_ctf_event,
if we pass NULL, we get a segfault

Actions #1

Updated by Yannick Brosseau over 11 years ago

It might be useful to list the problematic functions.

Actions #2

Updated by Danny Serres over 11 years ago

bt_ctf_event_get_handle_id
bt_ctf_get_top_level_scope
bt_ctf_event_name
bt_ctf_get_cycles
bt_ctf_get_timestamp
bt_ctf_get_field_list
bt_ctf_get_field
bt_ctf_get_index

and all functions in context.h

I might have omitted some of them

Actions #3

Updated by Mathieu Desnoyers over 11 years ago

  • Status changed from New to Resolved
  • Assignee set to Mathieu Desnoyers

Fixed by commit:

commit 7f89ddce05f0a5c985d6333fbe70a992da4bd244
Author: Mathieu Desnoyers <>
Date: Thu Aug 16 12:12:46 2012 -0400

Fix: complete error handling of babeltrace API
Signed-off-by: Mathieu Desnoyers &lt;&gt;
Actions

Also available in: Atom PDF