diff --git a/src/Lib/Process/MemoryMap/ProcessMemoryMapParser.php b/src/Lib/Process/MemoryMap/ProcessMemoryMapParser.php index 09b73854..64dc0911 100644 --- a/src/Lib/Process/MemoryMap/ProcessMemoryMapParser.php +++ b/src/Lib/Process/MemoryMap/ProcessMemoryMapParser.php @@ -40,7 +40,7 @@ private function parseLine(string $line): ?ProcessMemoryArea $matches = []; preg_match( // phpcs:ignore Generic.Files.LineLength.TooLong - '/([0-9a-f]+)-([0-9a-f]+) ([r\-][w\-][x\-][sp\-]) ([0-9a-f]+) ([0-9][0-9][0-9]?:[0-9][0-9][0-9]?) ([0-9]+) +([^ ].+)/', + '/([0-9a-f]+)-([0-9a-f]+) ([r\-][w\-][x\-][sp\-]) ([0-9a-f]+) ([0-9a-f][0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f][0-9a-f]?) ([0-9]+) +([^ ].+)?/', $line, $matches ); @@ -60,7 +60,7 @@ private function parseLine(string $line): ?ProcessMemoryArea ), device_id: $matches[5], inode_num: Cast::toInt($matches[6]), - name: $matches[7], + name: $matches[7] ?? '', ); } }