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

Index: poppler-0.79.0/poppler/PDFDoc.cc
===================================================================
--- poppler-0.79.0.orig/poppler/PDFDoc.cc
+++ poppler-0.79.0/poppler/PDFDoc.cc
@@ -531,7 +531,7 @@ static PDFSubtypePart pdfPartFromString(
 }
 
 static PDFSubtypeConformance pdfConformanceFromString(GooString *pdfSubtypeVersion) {
-  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;
   const std::string pdfsubver = pdfSubtypeVersion->toStr();
   PDFSubtypeConformance pdfConf = subtypeConfNone;
openSUSE Build Service is sponsored by