From: Albert Astals Cid Date: Sun, 23 Mar 2025 23:44:54 +0000 (+0100) Subject: [PATCH] PSStack::roll: Protect against doing int = -INT_MIN X-Git-Tag: archive/raspbian/25.03.0-5+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=02d54b75c5b7e6855c83fbaafca235abb3248008;p=poppler.git [PATCH] PSStack::roll: Protect against doing int = -INT_MIN Origin: upstream 25.04 Gbp-Pq: Name CVE-2025-32364.patch --- diff --git a/poppler/Function.cc b/poppler/Function.cc index d84c4e3..f3168f1 100644 --- a/poppler/Function.cc +++ b/poppler/Function.cc @@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2006, 2008-2010, 2013-2015, 2017-2020, 2022-2024 Albert Astals Cid +// Copyright (C) 2006, 2008-2010, 2013-2015, 2017-2020, 2022-2025 Albert Astals Cid // Copyright (C) 2006 Jeff Muizelaar // Copyright (C) 2010 Christian Feuersänger // Copyright (C) 2011 Andrea Canciani @@ -1068,7 +1068,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) {