public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Carl George <carlwgeorge@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/djvulibre] epel10: Restore out-of-bound-write-2.patch due to incomplete upstream fix
Date: Tue, 01 Dec 2026 16:48:19 GMT [thread overview]
Message-ID: <179614369997.1.3143645024377870852.rpms-djvulibre-2dbb293c72b6@fedoraproject.org> (raw)
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
reply other threads:[~2026-12-01 16:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179614369997.1.3143645024377870852.rpms-djvulibre-2dbb293c72b6@fedoraproject.org \
--to=carlwgeorge@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox