libsysprof: relax number of device numbers

Fixes #113
This commit is contained in:
Christian Hergert
2024-02-10 16:27:45 -08:00
parent a1b634fe80
commit 39d0579b05

View File

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