AcerAnalyzer: Fix a version misdetection

This commit is contained in:
RichardG867
2023-11-23 17:11:46 -03:00
parent e4fe980147
commit d46d5a55c0

View File

@@ -215,7 +215,7 @@ class AcerAnalyzer(Analyzer):
self._check_pattern = re.compile(b'''Copyright \\(C\\) Acer Incorporated 1990|Acer Boot Block v1\\.0''')
self._version_pattern = re.compile(
b'''(?:ACER|\\x00{4})\\x00(V[\\x20-\\x7E]+)\\x00\\x00|''' # V2.x and V3.x - can be all NULs instead of ACER (AOpen DX2G Plus)
b'''(?:ACER|\\x00{4})\\x00(V[0-9\\.]+)\\x00\\x00|''' # V2.x and V3.x - can be all NULs instead of ACER (AOpen DX2G Plus)
b'''(V[0-9\\.]+)[\\x00 ][0-9]{2}/[0-9]{2}/[0-9]{2,4}\\x00|''' # V1.x and V2.x - observed: space + 2-digit year; NUL + 4-digit year
b'''[\\x20-\\x7E]*ACER BIOS (V[\\x20-\\x7E]+)\\x00{2}''' # V1.0
)