mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-13 03:37:15 +00:00
poppler: patch CVE-2026-102621
Details: https://nvd.nist.gov/vuln/detail/cve-2026-102621 Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
This commit is contained in:
1 parent
bedbe1184f
commit
435cd16e9b
2 files changed
+41
No files matched your search
@@ -0,0 +1,40 @@
|
||||
From eaeeb2fe58aad490bc82aa33d75217dead0dd0de Mon Sep 17 00:00:00 2001
|
||||
From: Albert Astals Cid <aacid@kde.org>
|
||||
Date: Sat, 8 Aug 2026 15:02:27 +0200
|
||||
Subject: [PATCH] Fix integer overflow in SplashClip::clipToPath
|
||||
|
||||
Issue #1763
|
||||
|
||||
(cherry picked from commit 323c91036d99926a8b90dc14329f7b40aece22f8)
|
||||
|
||||
CVE: CVE-2026-102621
|
||||
Upstream-Status: Backport [https://gitlab.freedesktop.org/poppler/poppler/-/commit/323c91036d99926a8b90dc14329f7b40aece22f8]
|
||||
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||
---
|
||||
splash/SplashClip.cc | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/splash/SplashClip.cc b/splash/SplashClip.cc
|
||||
index 78249652c..b096beebd 100644
|
||||
--- a/splash/SplashClip.cc
|
||||
+++ b/splash/SplashClip.cc
|
||||
@@ -23,6 +23,8 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <algorithm>
|
||||
+#include "goo/GooCheckedOps.h"
|
||||
+#include "goo/GooLikely.h"
|
||||
#include "SplashErrorCodes.h"
|
||||
#include "SplashMath.h"
|
||||
#include "SplashPath.h"
|
||||
@@ -211,7 +213,9 @@ SplashError SplashClip::clipToPath(const SplashPath &path, const std::array<doub
|
||||
} else {
|
||||
if (antialias) {
|
||||
xPath.aaScale();
|
||||
- yMinAA = yMinI * splashAASize;
|
||||
+ if (unlikely(checkedMultiply(yMinI, splashAASize, &yMinAA))) {
|
||||
+ return SplashError::Generic;
|
||||
+ }
|
||||
yMaxAA = (yMaxI + 1) * splashAASize - 1;
|
||||
} else {
|
||||
yMinAA = yMinI;
|
||||
@@ -8,6 +8,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
|
||||
file://basename-include.patch \
|
||||
file://0001-cmake-Do-not-use-isystem.patch \
|
||||
file://0001-workaround-build-racing.patch \
|
||||
file://CVE-2026-102621.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "dc906e68cea698109706ac6aa3d2c9d4512fcfcac42d90b8afcda486d1b9abd0"
|
||||
|
||||
|
||||
Reference in new issue
Block a user