SHA256
1
0
forked from pool/htmldoc

4 Commits

Author SHA256 Message Date
31f6980af1 Accepting request 1283664 from Publishing
OBS-URL: https://build.opensuse.org/request/show/1283664
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/htmldoc?expand=0&rev=37
2025-06-10 06:59:33 +00:00
Martin Pluskal
f60d549541 htmldoc 1.9.20
OBS-URL: https://build.opensuse.org/package/show/Publishing/htmldoc?expand=0&rev=46
2025-06-06 13:04:53 +00:00
a08ad20d3a Accepting request 1221331 from Publishing
- security update
- added patches
  fix CVE-2024-46478 [bsc#1232380], buffer overflow when handling tabs through the parse_pre function (ps-pdf.cxx)
  + htmldoc-CVE-2024-46478.patch (forwarded request 1221327 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/1221331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/htmldoc?expand=0&rev=36
2024-11-05 14:39:41 +00:00
da2e06686b - security update
- added patches
  fix CVE-2024-46478 [bsc#1232380], buffer overflow when handling tabs through the parse_pre function (ps-pdf.cxx)
  + htmldoc-CVE-2024-46478.patch

OBS-URL: https://build.opensuse.org/package/show/Publishing/htmldoc?expand=0&rev=44
2024-11-05 07:58:46 +00:00
7 changed files with 100 additions and 32 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36492b39754ccd00c1183f8237850f09a3a807bb55cfaa9822090343c5012f09
size 3289754

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f458f3476acf73b791e3c0c71497c42d094b5d6bf96a4572d755b8c9e180609a
size 3291106

Binary file not shown.

View File

@@ -1,13 +0,0 @@
Index: htmldoc-1.9.18/htmldoc/ps-pdf.cxx
===================================================================
--- htmldoc-1.9.18.orig/htmldoc/ps-pdf.cxx
+++ htmldoc-1.9.18/htmldoc/ps-pdf.cxx
@@ -5234,7 +5234,7 @@ parse_paragraph(tree_t *t, /* I - Tree t
if (temp->markup != MARKUP_A)
break;
- if (temp != NULL && temp->markup == MARKUP_NONE && temp->data[0] == ' ')
+ if (temp != NULL && temp->markup == MARKUP_NONE && temp->data[0] == ' ' && temp->data[1])
{
// Drop leading space...
for (dataptr = temp->data; *dataptr; dataptr ++)

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Sat May 24 07:35:46 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 1.9.20:
* Fix a regression that caused spaces to disappear between some
words
* Fix resolution of relative links within a document
- includes changes from 1.9.19:
* Add support for file method in links
* Update markdown support code to mmd
* Fix hyperlinks to subfolders
* Fix export of UTF-8 HTML
* Fix handling of whitespace-only nodes
* Fix case sensitivity of link targets
- drop security patches now included:
* htmldoc-CVE-2024-46478.patch
* htmldoc-CVE-2024-45508.patch
- add upstream signing key and validate source signature
- clean up spec file, drop some unneeded or deprecated constructs
-------------------------------------------------------------------
Tue Nov 5 07:31:53 UTC 2024 - pgajdos@suse.com
- security update
- added patches
fix CVE-2024-46478 [bsc#1232380], buffer overflow when handling tabs through the parse_pre function (ps-pdf.cxx)
+ htmldoc-CVE-2024-46478.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 2 12:48:22 UTC 2024 - pgajdos@suse.com Mon Sep 2 12:48:22 UTC 2024 - pgajdos@suse.com

52
htmldoc.keyring Normal file
View File

@@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF+cjnMBEADB0sQniR+sWOFBHWURGGkUwVPUbApFs4RNiy8HEpH9wdWG2jtz
7qqJeoa9GoZYEFVsHi3O0bvxNxb+PZNbk7VwsWImWYox8SR9QVNo5Ie0Sh9HzKqD
ZA8FWf4KooIczKTYBqTsVvGsURcCAEMObh4WgvB2Yg1sGKPfMI2YUC/MnmN10Z4O
JW3m2hymDoOsYWWherXRwGDFZKJXWnZ6YTamxRuhKe0s7N9LiOKX5fl4heEmdlNz
W/d8rvQd3ANNKHk0ebtv+44h4wbrdk7M//X29AOvN3s7lRhQJBRJb6ymuQUnqhb/
k0DbaV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DI6uFlcTsiyyjM/i0icHNXgERV05Ar0+aPwNxnSWsQTb1E
OpezzyUxk9bNkSG7kbpKV0Cdw8nasY+RM4SUam4/W+0mRY+8p9B5Xr3GlKn9mU2y
heNFqJz5liTAAsh4qZ8YR0M0umyhN5L23bk+bBT6iCbV4SvCsdC7sfvFd5Md1sbY
NuU0g4pKmA0pMcCbhhL+MCgYWU4s9zh1WPytIY7ashnwr3R124/H6Hci8nToWVCi
ypJ1uzJIeRH2XKfM22mKsBEzdGla6gSrGvoFlqdVVIUhyshdFZ9AqIk6xhsa7YTt
8k0b/8JDqx5T7Iw0I2F7DfVIO8a5LfyEE7zi7sJjkX6dRff52CDjAELV6c47KnkH
0RRbUAm5u4YbySwyuHYIshsPNNd3qHK7Mli4OsAjiYdD1Zg3axW3+ssjvYFHAoIF
CqVcYZ5RFGDHTSi9Vsm75ItbuQXCBR0WoVZ1xoEiVTjZGZKsKNrpy486TppkHdLU
8qSm3l2abPVAlf7QIFh5qv8OAW3InLaproUsWlcQ3lkDbf6ZgoTbyJsQ1VBMc8UD
TmrmetlmpxSMcMU=
=No6h
-----END PGP PUBLIC KEY BLOCK-----

View File

@@ -2,6 +2,7 @@
# spec file for package htmldoc # spec file for package htmldoc
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,26 +18,29 @@
Name: htmldoc Name: htmldoc
Version: 1.9.18 Version: 1.9.20
Release: 0 Release: 0
Summary: HTML Processor that Generates HTML, PostScript, and PDF Files Summary: HTML Processor that Generates HTML, PostScript, and PDF Files
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: Productivity/Publishing/HTML/Tools Group: Productivity/Publishing/HTML/Tools
URL: https://michaelrsweet.github.io/htmldoc/index.html URL: https://michaelrsweet.github.io/htmldoc/index.html
Source: https://github.com/michaelrsweet/htmldoc/releases/download/v%{version}/htmldoc-%{version}-source.tar.gz Source: https://github.com/michaelrsweet/htmldoc/releases/download/v%{version}/htmldoc-%{version}-source.tar.gz
# CVE-2024-45508 [bsc#1230022], HTMLDOC before 1.9.19 has an out-of-bounds write in parse_paragraph in ps-pdf.cxx because of an attempt to strip leading whitespace from a whitespace-only node. Source2: https://github.com/michaelrsweet/htmldoc/releases/download/v%{version}/htmldoc-%{version}-source.tar.gz.sig
Patch0: htmldoc-CVE-2024-45508.patch # https://www.msweet.org/pgp.html
BuildRequires: cups-devel Source3: %{name}.keyring
BuildRequires: c++_compiler
BuildRequires: fltk-devel BuildRequires: fltk-devel
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: libXpm-devel BuildRequires: pkgconfig
BuildRequires: libgcrypt-devel BuildRequires: pkgconfig(libjpeg)
BuildRequires: libgnutls-devel BuildRequires: pkgconfig(libpng)
BuildRequires: libjpeg-devel BuildRequires: pkgconfig(xpm)
BuildRequires: libpng-devel BuildRequires: pkgconfig(zlib)
BuildRequires: update-desktop-files %if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
BuildRequires: zlib-devel BuildRequires: cups-devel
%else
BuildRequires: pkgconfig(cups)
%endif
%description %description
HTMLDOC converts HTML source files into indexed HTML, PostScript, or HTMLDOC converts HTML source files into indexed HTML, PostScript, or
@@ -56,10 +60,7 @@ Portable Document Format (PDF) files that can be viewed online or printed.
mv -f %{buildroot}%{buildroot}/* \ mv -f %{buildroot}%{buildroot}/* \
%{buildroot} %{buildroot}
# Get rid of unvanted files # Get rid of unvanted files
rm -rf %{buildroot}/home %{buildroot}%{_datadir}/doc/%{name} rm -rf %{buildroot}%{_datadir}/doc/%{name}
# Update desktop file
%suse_update_desktop_file -r %{name} Development Documentation
%suse_update_desktop_file %{name} -G%{name}
%files %files
%license COPYING %license COPYING