SHA256
1
0
forked from pool/htmldoc
htmldoc/htmldoc-CVE-2022-28085.patch

14 lines
449 B
Diff
Raw Normal View History

Index: htmldoc-1.9.15/htmldoc/ps-pdf.cxx
===================================================================
--- htmldoc-1.9.15.orig/htmldoc/ps-pdf.cxx
+++ htmldoc-1.9.15/htmldoc/ps-pdf.cxx
@@ -3583,6 +3583,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);