File poppler-CVE-2025-43718.patch of Package poppler.41251

Index: poppler-23.01.0/poppler/PDFDoc.cc
===================================================================
--- poppler-23.01.0.orig/poppler/PDFDoc.cc
+++ poppler-23.01.0/poppler/PDFDoc.cc
@@ -481,7 +481,7 @@ static PDFSubtypePart pdfPartFromString(
 
 static PDFSubtypeConformance pdfConformanceFromString(const std::string &pdfsubver)
 {
-    const std::regex regex("PDF/(?:A|X|VT|E|UA)-[[:digit:]]([[:alpha:]]+)");
+    const std::regex regex("PDF/(?:A|X|VT|E|UA)-[[:digit:]]([[:alpha:]]{1,3})");
     std::smatch match;
     PDFSubtypeConformance pdfConf = subtypeConfNone;
 
openSUSE Build Service is sponsored by