forked from pool/htmldoc
7db71ad13b
- security update - added patches fix CVE-2022-28085 [bsc#1198933], Heap buffer overflow in function pdf_write_names in ps-pdf.cxx + htmldoc-CVE-2022-28085.patch OBS-URL: https://build.opensuse.org/request/show/973830 OBS-URL: https://build.opensuse.org/package/show/Publishing/htmldoc?expand=0&rev=32
14 lines
449 B
Diff
14 lines
449 B
Diff
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);
|