2024-11-08 23:07:30 +00:00
|
|
|
From 9895b74a43dcbb41704572d2304d03d4d24397f2 Mon Sep 17 00:00:00 2001
|
2024-11-06 20:39:21 +00:00
|
|
|
From: Christian Hergert <chergert@redhat.com>
|
|
|
|
Date: Fri, 11 Oct 2024 11:08:52 -0700
|
2024-11-08 23:07:30 +00:00
|
|
|
Subject: [PATCH 09/31] libsysprof: ensure access to process info
|
2024-11-06 20:39:21 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
src/libsysprof/sysprof-document-symbols.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/libsysprof/sysprof-document-symbols.c b/src/libsysprof/sysprof-document-symbols.c
|
|
|
|
index 828c7fb6..e5584a69 100644
|
|
|
|
--- a/src/libsysprof/sysprof-document-symbols.c
|
|
|
|
+++ b/src/libsysprof/sysprof-document-symbols.c
|
|
|
|
@@ -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;
|
|
|
|
|
|
|
|
--
|
|
|
|
2.45.2
|
|
|
|
|