From 39d0579b0570a9566c1004d23570af488e24d9ff Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 10 Feb 2024 16:27:45 -0800 Subject: [PATCH] libsysprof: relax number of device numbers Fixes #113 --- src/libsysprof/sysprof-maps-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof/sysprof-maps-parser.c b/src/libsysprof/sysprof-maps-parser.c index e60fe1e2..ebb7af2e 100644 --- a/src/libsysprof/sysprof-maps-parser.c +++ b/src/libsysprof/sysprof-maps-parser.c @@ -32,7 +32,7 @@ sysprof_maps_parser_init (SysprofMapsParser *self, line_reader_init (&self->reader, (char *)str, len); if (address_range_regex == NULL) - address_range_regex = g_regex_new ("^([0-9a-f]+)-([0-9a-f]+) [r\\-][w\\-][x\\-][ps\\-] ([0-9a-f]+) [0-9a-f]{2}:[0-9a-f]{2} ([0-9]+) +(.*)$", + address_range_regex = g_regex_new ("^([0-9a-f]+)-([0-9a-f]+) [r\\-][w\\-][x\\-][ps\\-] ([0-9a-f]+) [0-9a-f]+:[0-9a-f]+ ([0-9]+) +(.*)$", G_REGEX_OPTIMIZE, G_REGEX_MATCH_DEFAULT, NULL);