libsysprof: ensure access to process info

This commit is contained in:
Christian Hergert
2024-10-11 11:08:52 -07:00
parent 24619651af
commit c009532c91

View File

@ -112,6 +112,9 @@ do_symbolize (SysprofSymbolizer *symbolizer,
* and where (relative to that file) the IP was.
*/
if (process_info == NULL || process_info->address_layout == NULL)
return NULL;
if (!(map = sysprof_address_layout_lookup (process_info->address_layout, address)))
return NULL;