File poppler-CVE-2025-43718.patch of Package poppler.41014
Index: poppler-22.01.0/poppler/PDFDoc.cc
===================================================================
--- poppler-22.01.0.orig/poppler/PDFDoc.cc
+++ poppler-22.01.0/poppler/PDFDoc.cc
@@ -539,7 +539,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;