libsysprof: defend against empty symbol lists

This commit is contained in:
Christian Hergert
2023-08-08 14:15:51 -07:00
parent 3a875aaf26
commit fd705063bf

View File

@ -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);