File poppler-CVE-2025-32364.patch of Package poppler.38201
From d87bc726c7cc98f8c26b60ece5f20236e9de1bc3 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Mon, 24 Mar 2025 00:44:54 +0100
Subject: [PATCH] PSStack::roll: Protect against doing int = -INT_MIN
---
poppler/Function.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: poppler-0.79.0/poppler/Function.cc
===================================================================
--- poppler-0.79.0.orig/poppler/Function.cc
+++ poppler-0.79.0/poppler/Function.cc
@@ -1098,7 +1098,7 @@ void PSStack::roll(int n, int j) {
PSObject obj;
int i, k;
- if (unlikely(n == 0)) {
+ if (unlikely(n == 0 || j == INT_MIN)) {
return;
}
if (j >= 0) {