[neon/backports-jammy/poppler-jammy/Neon/release] debian/patches: Drop all patches: applied in new release
Jeremy Bicha
null at kde.org
Wed Jan 25 14:08:57 GMT 2023
Git commit 2923613c1a1628839956762bffa7f4ad8b2ac37d by Jeremy Bicha.
Committed on 01/11/2022 at 12:52.
Pushed by jriddell into branch 'Neon/release'.
Drop all patches: applied in new release
D +0 -34 debian/patches/JBIG2Stream-Fix-crash-on-broken-file.patch
D +0 -35 debian/patches/segfault-on-unset-catalog.patch
M +0 -2 debian/patches/series
https://invent.kde.org/neon/backports-jammy/poppler-jammy/commit/2923613c1a1628839956762bffa7f4ad8b2ac37d
diff --git a/debian/patches/JBIG2Stream-Fix-crash-on-broken-file.patch b/debian/patches/JBIG2Stream-Fix-crash-on-broken-file.patch
deleted file mode 100644
index 0441f95..0000000
--- a/debian/patches/JBIG2Stream-Fix-crash-on-broken-file.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From: Albert Astals Cid <aacid at kde.org>
-Date: Thu, 25 Aug 2022 00:14:22 +0200
-Subject: JBIG2Stream: Fix crash on broken file
-Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/27354e9d9696ee2bc063910a6c9a6b27c5184a52
-Bug-Debian: https://bugs.debian.org/1018971
-Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2022-38784
-
-https://github.com/jeffssh/CVE-2021-30860
-
-Thanks to David Warren for the heads up
----
- poppler/JBIG2Stream.cc | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
-index 662276e547eb..9f70431de49e 100644
---- a/poppler/JBIG2Stream.cc
-+++ b/poppler/JBIG2Stream.cc
-@@ -1976,7 +1976,11 @@ void JBIG2Stream::readTextRegionSeg(unsigned int segNum, bool imm, bool lossless
- for (i = 0; i < nRefSegs; ++i) {
- if ((seg = findSegment(refSegs[i]))) {
- if (seg->getType() == jbig2SegSymbolDict) {
-- numSyms += ((JBIG2SymbolDict *)seg)->getSize();
-+ const unsigned int segSize = ((JBIG2SymbolDict *)seg)->getSize();
-+ if (unlikely(checkedAdd(numSyms, segSize, &numSyms))) {
-+ error(errSyntaxError, getPos(), "Too many symbols in JBIG2 text region");
-+ return;
-+ }
- } else if (seg->getType() == jbig2SegCodeTable) {
- codeTables.push_back(seg);
- }
---
-2.37.2
-
diff --git a/debian/patches/segfault-on-unset-catalog.patch b/debian/patches/segfault-on-unset-catalog.patch
deleted file mode 100644
index 3ec7455..0000000
--- a/debian/patches/segfault-on-unset-catalog.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Description: fix a segfault when a document does not have a catalog
- New poppler causes segfaults in r-cran-pdftools because the
- get_pdf_version() function now depends on the document having a non-null
- catalog, which is evidently not guaranteed to be the case. Maybe something
- is supposed to initialize it, but we can at least fix the segfault and
- restore compatibility with previous behavior by checking for a null catalog
- before dereferencing.
-Author: Steve Langasek <steve.langasek at ubuntu.com>
-Last-Update: 2021-12-08
-Forwarded: no
-
-Index: poppler-21.11.0/poppler/PDFDoc.h
-===================================================================
---- poppler-21.11.0.orig/poppler/PDFDoc.h
-+++ poppler-21.11.0/poppler/PDFDoc.h
-@@ -283,16 +283,16 @@
- PDFSubtypeConformance getPDFSubtypeConformance() const { return pdfConformance; }
-
- // Return the PDF version specified by the file (either header or catalog).
-- int getPDFMajorVersion() const { return std::max(headerPdfMajorVersion, catalog->getPDFMajorVersion()); }
-+ int getPDFMajorVersion() const { return std::max(headerPdfMajorVersion, catalog ? catalog->getPDFMajorVersion() : 0); }
- int getPDFMinorVersion() const
- {
-- const int catalogMajorVersion = catalog->getPDFMajorVersion();
-+ const int catalogMajorVersion = catalog ? catalog->getPDFMajorVersion() : 0;
- if (catalogMajorVersion > headerPdfMajorVersion) {
- return catalog->getPDFMinorVersion();
- } else if (headerPdfMajorVersion > catalogMajorVersion) {
- return headerPdfMinorVersion;
- } else {
-- return std::max(headerPdfMinorVersion, catalog->getPDFMinorVersion());
-+ return std::max(headerPdfMinorVersion, catalog ? catalog->getPDFMinorVersion() : 0);
- }
- }
-
diff --git a/debian/patches/series b/debian/patches/series
index b1a4baa..e69de29 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +0,0 @@
-segfault-on-unset-catalog.patch
-JBIG2Stream-Fix-crash-on-broken-file.patch
More information about the Neon-commits
mailing list