SHA256
1
0
forked from pool/htmldoc
htmldoc/htmldoc-CVE-2022-28085.patch
Martin Pluskal 7db71ad13b Accepting request 973830 from home:pgajdos
- 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
2022-04-29 13:46:08 +00:00

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);