diff --git a/poppler-24.02.0-check-bitmap-in-combine.patch b/poppler-24.02.0-check-bitmap-in-combine.patch new file mode 100644 index 0000000000000000000000000000000000000000..7ae2ed3c5ac08680c99428caa5f19e83c81f82b5 --- /dev/null +++ b/poppler-24.02.0-check-bitmap-in-combine.patch @@ -0,0 +1,40 @@ +From 1f151565bbca5be7449ba8eea6833051cc1baa41 Mon Sep 17 00:00:00 2001 +From: Albert Astals Cid +Date: Mon, 31 Mar 2025 14:35:49 +0200 +Subject: Move isOk check to inside JBIG2Bitmap::combine + + +diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc +index cf9e0c98..4e81d4a8 100644 +--- poppler-24.02.0/poppler/JBIG2Stream.cc ++++ poppler-24.02.0/poppler/JBIG2Stream.cc +@@ -15,7 +15,7 @@ + // + // Copyright (C) 2006 Raj Kumar + // Copyright (C) 2006 Paul Walmsley +-// Copyright (C) 2006-2010, 2012, 2014-2022 Albert Astals Cid ++// Copyright (C) 2006-2010, 2012, 2014-2022, 2025 Albert Astals Cid + // Copyright (C) 2009 David Benjamin + // Copyright (C) 2011 Edward Jiang + // Copyright (C) 2012 William Bader +@@ -771,6 +771,9 @@ void JBIG2Bitmap::combine(JBIG2Bitmap *b + unsigned int src0, src1, src, dest, s1, s2, m1, m2, m3; + bool oneByte; + ++ if (unlikely(!isOk())) { ++ return; ++ } + // check for the pathological case where y = -2^31 + if (y < -0x7fffffff) { + return; +@@ -2199,9 +2202,7 @@ void JBIG2Stream::readTextRegionSeg(unsi + if (pageH == 0xffffffff && y + h > curPageH) { + pageBitmap->expand(y + h, pageDefPixel); + } +- if (pageBitmap->isOk()) { +- pageBitmap->combine(bitmap.get(), x, y, extCombOp); +- } ++ pageBitmap->combine(bitmap.get(), x, y, extCombOp); + + // store the region bitmap + } else { diff --git a/poppler.spec b/poppler.spec index cae292e90c1cbdb7c78e916f9958aabc58a784f2..e6cbcfbfe0bdfe8f9cbd8e143d493543ac54cd61 100644 --- a/poppler.spec +++ b/poppler.spec @@ -1,4 +1,5 @@ -%define anolis_release 1 +ExclusiveArch: x86_64 aarch64 +%define anolis_release 2 Summary: PDF rendering library Name: poppler @@ -16,6 +17,8 @@ Patch4: poppler-24.02.0-pdfinfo-dests.patch #https://gitlab.freedesktop.org/poppler/poppler/-/commit/ade9b5ebed44b0c15522c27669ef6cdf93eff84e Patch5: fix-CVE-2024-56378.patch Patch6: poppler-24.02.0-covscan.patch +# RHEL-131783, RHEL-131782 +Patch7: poppler-24.02.0-check-bitmap-in-combine.patch BuildRequires: make BuildRequires: cmake @@ -225,6 +228,10 @@ test "$(pkg-config --modversion poppler-qt5)" = "%{version}" %{_mandir}/man1/* %changelog +* Sun Mar 22 2026 wenjie2025 - 24.02.0-2 +- Check bitmap in combine() +- Resolves: RHEL-131783, RHEL-131782 + * Thu Mar 20 2025 Zhao Hang - 24.02.0-1 - Update to 24.02.0-1 from 23.05.0-4 - Migrated to SPDX license