mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: defend against empty symbol lists
This commit is contained in:
@ -373,6 +373,8 @@ sysprof_callgraph_add_traceable (SysprofCallgraph *self,
|
||||
symbols,
|
||||
stack_depth,
|
||||
&final_context);
|
||||
if (n_symbols == 0)
|
||||
return;
|
||||
|
||||
g_assert (n_symbols <= stack_depth);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user