public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/djvulibre] epel10: Restore out-of-bound-write-2.patch due to incomplete upstream fix
@ 2026-12-01 16:48 Carl George
0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-12-01 16:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/djvulibre
Branch : epel10
Commit : 2dbb293c72b6026087f4277f3c01674f3d2e7367
Author : Carl George <carlwgeorge@fedoraproject.org>
Date : 2026-11-19T12:21:32-06:00
Stats : +20/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/djvulibre/c/2dbb293c72b6026087f4277f3c01674f3d2e7367?branch=epel10
Log:
Restore out-of-bound-write-2.patch due to incomplete upstream fix
https://src.fedoraproject.org/rpms/djvulibre/pull-request/2#comment-343689
---
diff --git a/djvulibre-3.5.27-out-of-bound-write-2.patch b/djvulibre-3.5.27-out-of-bound-write-2.patch
new file mode 100644
index 0000000..7d3cc3b
--- /dev/null
+++ b/djvulibre-3.5.27-out-of-bound-write-2.patch
@@ -0,0 +1,14 @@
+diff --git a/libdjvu/DjVuText.cpp b/libdjvu/DjVuText.cpp
+index caf418f..4fa6124 100644
+--- a/libdjvu/DjVuText.cpp
++++ b/libdjvu/DjVuText.cpp
+@@ -347,7 +347,8 @@ DjVuTXT::decode(const GP<ByteStream> &gbs)
+ int readsize = bs.read(buffer,textsize);
+ if (readsize < textsize || textsize <= 0)
+ G_THROW( ERR_MSG("DjVuText.corrupt_chunk") );
+- buffer[readsize] = 0;
++ if (buffer)
++ buffer[readsize] = 0;
+ // Try reading zones
+ unsigned char version;
+ if ( bs.read( (void*) &version, 1 ) == 1)
diff --git a/djvulibre.spec b/djvulibre.spec
index 79ab9c5..73ff64b 100644
--- a/djvulibre.spec
+++ b/djvulibre.spec
@@ -9,11 +9,12 @@
Summary: DjVu viewers, encoders, and utilities
Name: djvulibre
Version: 3.5.29
-Release: 1%{?dist}
+Release: 2%{?dist}
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://djvu.sourceforge.net/
Source0: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
+Patch14: djvulibre-3.5.27-out-of-bound-write-2.patch
Patch15: 0001-Check-for-zero-width-and-height.patch
Requires(post): xdg-utils
@@ -64,6 +65,7 @@ Development files for DjVuLibre.
%prep
%setup -q
+%patch -P14 -p1 -b .out-of-bound-write-2
%patch -P15 -p1 -b .zero-size-image
@@ -172,6 +174,9 @@ fi
%changelog
+* Thu Nov 19 2026 Carl George <carlwgeorge@fedoraproject.org> - 3.5.29-2
+- Restore out-of-bound-write-2.patch due to incomplete upstream fix
+
* Wed Sep 02 2026 Pedro Moura <pmoura@redhat.com> - 3.5.29-1
- Update to 3.5.29 (fixes CVE-2025-53367)
- Remove all old patches
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 16:48 [rpms/djvulibre] epel10: Restore out-of-bound-write-2.patch due to incomplete upstream fix Carl George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox