import poppler-20.11.0-2.el8_4.1
This commit is contained in:
parent
29376cef82
commit
2cc4dd4b57
35
SOURCES/poppler-20.11.0-bad-generation.patch
Normal file
35
SOURCES/poppler-20.11.0-bad-generation.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 4f478daa6a9734b8f269a6586bdce2909844bb6f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Albert Astals Cid <aacid@kde.org>
|
||||||
|
Date: Wed, 23 Dec 2020 23:52:58 +0100
|
||||||
|
Subject: Fix opening files by some generators that are a bit broken
|
||||||
|
|
||||||
|
But Adobe opens it and it's easy to fix
|
||||||
|
|
||||||
|
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
|
||||||
|
index 66d3f04a..c36c747a 100644
|
||||||
|
--- a/poppler/XRef.cc
|
||||||
|
+++ b/poppler/XRef.cc
|
||||||
|
@@ -45,6 +45,7 @@
|
||||||
|
#include <cctype>
|
||||||
|
#include <climits>
|
||||||
|
#include <cfloat>
|
||||||
|
+#include <limits>
|
||||||
|
#include "goo/gfile.h"
|
||||||
|
#include "goo/gmem.h"
|
||||||
|
#include "Object.h"
|
||||||
|
@@ -793,8 +794,13 @@ bool XRef::readXRefStreamSection(Stream *xrefStr, const int *w, int first, int n
|
||||||
|
gen = (gen << 8) + c;
|
||||||
|
}
|
||||||
|
if (gen > INT_MAX) {
|
||||||
|
- error(errSyntaxError, -1, "Gen inside xref table too large (bigger than INT_MAX)");
|
||||||
|
- return false;
|
||||||
|
+ if (i == 0 && gen == std::numeric_limits<uint32_t>::max()) {
|
||||||
|
+ // workaround broken generators
|
||||||
|
+ gen = 65535;
|
||||||
|
+ } else {
|
||||||
|
+ error(errSyntaxError, -1, "Gen inside xref table too large (bigger than INT_MAX)");
|
||||||
|
+ return false;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
if (entries[i].offset == -1) {
|
||||||
|
switch (type) {
|
@ -4,7 +4,7 @@
|
|||||||
Summary: PDF rendering library
|
Summary: PDF rendering library
|
||||||
Name: poppler
|
Name: poppler
|
||||||
Version: 20.11.0
|
Version: 20.11.0
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}.1
|
||||||
License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
|
License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
|
||||||
URL: http://poppler.freedesktop.org/
|
URL: http://poppler.freedesktop.org/
|
||||||
Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz
|
Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz
|
||||||
@ -21,6 +21,9 @@ Patch4: poppler-0.66.0-covscan.patch
|
|||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1618766
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1618766
|
||||||
Patch21: poppler-0.66.0-nss.patch
|
Patch21: poppler-0.66.0-nss.patch
|
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2002638
|
||||||
|
Patch22: poppler-20.11.0-bad-generation.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: pkgconfig(cairo)
|
BuildRequires: pkgconfig(cairo)
|
||||||
@ -225,6 +228,10 @@ test "$(pkg-config --modversion poppler-splash)" = "%{version}"
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 9 2021 Marek Kasik <mkasik@redhat.com> - 20.11.0-2.el8_4.1
|
||||||
|
- Fix opening files with streams with wrong generations
|
||||||
|
- Resolves: #2002638
|
||||||
|
|
||||||
* Tue Dec 8 2020 Marek Kasik <mkasik@redhat.com> - 20.11.0-2
|
* Tue Dec 8 2020 Marek Kasik <mkasik@redhat.com> - 20.11.0-2
|
||||||
- Improve python3 build dependency
|
- Improve python3 build dependency
|
||||||
- Resolves: #1896335
|
- Resolves: #1896335
|
||||||
|
Loading…
Reference in New Issue
Block a user