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

Index: poppler-24.03.0/poppler/PDFDoc.cc
===================================================================
--- poppler-24.03.0.orig/poppler/PDFDoc.cc
+++ poppler-24.03.0/poppler/PDFDoc.cc
@@ -489,7 +489,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