Project

General

Profile

Bug #317

segfault when calling trace-handle functions with a wrong handle_id

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

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/24/2012
Due date:
% Done:

100%

Estimated time:

Description

When specifying an unexisting handle_id in any of these functions, we get a segfault

bt_trace_handle_get_path
bt_trace_handle_get_timestamp_begin
bt_trace_handle_get_timestamp_end

Associated revisions

Revision 5d95b2db (diff)
Added by Julien Desfossez over 5 years ago

Fix: check if handle is valid

Fixes: #317

[ Edit by Mathieu Desnoyers: put successful return at end of function,
and error return with the test for error. ]

Signed-off-by: Julien Desfossez <>
Signed-off-by: Mathieu Desnoyers <>

History

#1 Updated by Julien Desfossez over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

Also available in: Atom PDF