libsysprof: allow hex for device major/minor

Noticed by Fabrice Bellet in #104
This commit is contained in:
Christian Hergert
2024-02-06 12:02:40 -08:00
parent 1eff2209eb
commit 802c298e95

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-9]{2}:[0-9]{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]{2}:[0-9a-f]{2} ([0-9]+) +(.*)$",
G_REGEX_OPTIMIZE,
G_REGEX_MATCH_DEFAULT,
NULL);