File htmldoc-CVE-2022-28085.patch of Package htmldoc.17472

Index: htmldoc-1.9.12/htmldoc/ps-pdf.cxx
===================================================================
--- htmldoc-1.9.12.orig/htmldoc/ps-pdf.cxx
+++ htmldoc-1.9.12/htmldoc/ps-pdf.cxx
@@ -3578,6 +3578,8 @@ pdf_write_names(FILE *out)		/* I - Outpu
     pdf_start_object(out);
     float x, y;
 
+    check_pages(link->page);
+
     x = 0.0f;
     y = link->top + pages[link->page].bottom;
     pspdf_transform_coords(pages + link->page, x, y);
openSUSE Build Service is sponsored by