mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
eb0d409bd7
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.
26 lines
808 B
Diff
26 lines
808 B
Diff
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
|
|
|