summaryrefslogtreecommitdiffstats
path: root/source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-04-08 18:20:03 +0000
committer Eric Hameleers <alien@slackware.com>2021-04-09 08:59:49 +0200
commiteb0d409bd7bed52cad64bf3044c7cdaf1afba18c (patch)
tree1fc8222823e3f240d333299b9c83a75e87f7c7a1 /source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch
parent38a95ef8249fac405645bd8d1ff5798186d32e03 (diff)
downloadcurrent-eb0d409bd7bed52cad64bf3044c7cdaf1afba18c.tar.gz
current-eb0d409bd7bed52cad64bf3044c7cdaf1afba18c.tar.xz
Thu Apr 8 18:20:03 UTC 202120210408182003
ap/vim-8.2.2735-x86_64-1.txz: Upgraded. d/cmake-3.20.1-x86_64-1.txz: Upgraded. d/vala-0.52.1-x86_64-1.txz: Upgraded. l/glib2-2.68.1-x86_64-1.txz: Upgraded. l/gsettings-desktop-schemas-40.0-x86_64-1.txz: Upgraded. l/libxkbcommon-1.2.1-x86_64-1.txz: Upgraded. l/netpbm-10.94.02-x86_64-1.txz: Upgraded. l/ocl-icd-2.3.0-x86_64-1.txz: Upgraded. l/poppler-21.04.0-x86_64-2.txz: Rebuilt. Applied a couple of upstream patches. Thanks to th_r. xap/vim-gvim-8.2.2735-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch')
-rw-r--r--source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch b/source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch
new file mode 100644
index 000000000..ed3169eab
--- /dev/null
+++ b/source/l/poppler/2ed4cd66401bc1d9683c94238e9024218d7be3ba.patch
@@ -0,0 +1,26 @@
+From 2ed4cd66401bc1d9683c94238e9024218d7be3ba Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Wed, 7 Apr 2021 00:14:59 +0200
+Subject: [PATCH] TextOutputDev: Fix crash in malformed file
+
+oss-fuzz/32952
+---
+ poppler/TextOutputDev.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
+index ea12b4689..956c13289 100644
+--- a/poppler/TextOutputDev.cc
++++ b/poppler/TextOutputDev.cc
+@@ -931,7 +931,7 @@ TextPool::~TextPool()
+ int TextPool::getBaseIdx(double base) const
+ {
+ const double baseIdxDouble = base / textPoolStep;
+- if (baseIdxDouble < minBaseIdx) {
++ if (std::isnan(baseIdxDouble) || baseIdxDouble < minBaseIdx) {
+ return minBaseIdx;
+ }
+ if (baseIdxDouble > maxBaseIdx) {
+--
+GitLab
+