From ee8d10cba21e648cb12d15bfb1a864bf525682f6 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 22 Nov 2023 21:05:22 -0300 Subject: [PATCH] CorebootAnalyzer: Partial support for newer images --- biostools/analyzers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biostools/analyzers.py b/biostools/analyzers.py index 07c30b6..3b93089 100644 --- a/biostools/analyzers.py +++ b/biostools/analyzers.py @@ -1574,7 +1574,7 @@ class CorebootAnalyzer(Analyzer): super().__init__('coreboot', *args, **kwargs) self._identifier_pattern = re.compile(b'''coreboot-%s%s |Sage_coreboot-|Jumping to LinuxBIOS\\.''') - self._version_coreboot_pattern = re.compile(b'''#(?: This image was built using coreboot |define COREBOOT_VERSION ")([\\x20-\\x21\\x23-\\x7E]+)''') + self._version_coreboot_pattern = re.compile(b'''(?:#(?: This image was built using coreboot |define COREBOOT_VERSION ")|COREBOOT_VERSION: )([\\x20-\\x21\\x23-\\x7E]+)''') self._version_linuxbios_pattern = re.compile(b'''((LinuxBIOS|coreboot)-([^_ ]+)[_ ](?:Normal |Fallback )?(?:.* )?)starting\\.\\.\\.''') self._build_pattern = re.compile(b'''#define COREBOOT_BUILD "([^"]+?)"''')