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