public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bzip3] epel10.2: Fix a buffer overflow in bz3_compress() for small incompressible inputs
Date: Fri, 23 Oct 2026 07:52:04 GMT [thread overview]
Message-ID: <179274192425.1.18015937050664828544.rpms-bzip3-f6d663688e13@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bzip3
Branch : epel10.2
Commit : f6d663688e1308d1126ea437e68363fea5013d5b
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-10-23T09:50:38+02:00
Stats : +32/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/bzip3/c/f6d663688e1308d1126ea437e68363fea5013d5b?branch=epel10.2
Log:
Fix a buffer overflow in bz3_compress() for small incompressible inputs
---
diff --git a/bzip3-1.5.5-fix-193.patch b/bzip3-1.5.5-fix-193.patch
new file mode 100644
index 0000000..5bc9594
--- /dev/null
+++ b/bzip3-1.5.5-fix-193.patch
@@ -0,0 +1,27 @@
+From 8be53a2a4bcb543d1af2eb9fd349b5eafd05bcaf Mon Sep 17 00:00:00 2001
+From: Kamila Szewczyk <szewczyk@cs.uni-saarland.de>
+Date: Thu, 22 Oct 2026 19:29:16 +0200
+Subject: [PATCH] fix #193
+
+Petr Pisar: Ported to 1.5.5.
+
+---
+ src/libbz3.c | 2 +-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/libbz3.c b/src/libbz3.c
+index e5a7896..501e2c9 100644
+--- a/src/libbz3.c
++++ b/src/libbz3.c
+@@ -514,7 +514,7 @@ BZIP3_API s8 bz3_last_error(struct bz3_state * state) { return state->last_error
+
+ BZIP3_API const char * bz3_version(void) { return VERSION; }
+
+-BZIP3_API size_t bz3_bound(size_t input_size) { return input_size + input_size / 50 + 32; }
++BZIP3_API size_t bz3_bound(size_t input_size) { return input_size + input_size / 50 + 50; }
+
+ BZIP3_API const char * bz3_strerror(struct bz3_state * state) {
+ switch (state->last_error) {
+--
+2.56.0
+
diff --git a/bzip3.spec b/bzip3.spec
index 30163f7..d055fa3 100644
--- a/bzip3.spec
+++ b/bzip3.spec
@@ -55,6 +55,9 @@ Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
# Do not use /usr/bin/env in shell bangs, not suitable for upstream,
# <https://github.com/kspalaiologos/bzip3/pull/75>.
Patch0: bzip3-1.5.0-Do-not-use-usr-bin-env-in-shell-bangs.patch
+# Fix a buffer overflow in bz3_compress() for small incompressible inputs, in
+# upstream after 1.5.5, <https://github.com/iczelia/bzip3/issues/193>
+Patch1: bzip3-1.5.5-fix-193.patch
BuildRequires: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
@@ -269,6 +272,8 @@ fi
%changelog
* Thu Oct 22 2026 Petr Pisar <ppisar@redhat.com> - 1.5.5-1
- 1.5.5 bump
+- Fix a buffer overflow in bz3_compress() for small incompressible inputs
+ (upstream GH#193)
* Tue Sep 08 2026 Petr Pisar <ppisar@redhat.com> - 1.5.4-1
- 1.5.4 bump
reply other threads:[~2026-10-23 7:52 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=179274192425.1.18015937050664828544.rpms-bzip3-f6d663688e13@fedoraproject.org \
--to=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