public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bzip3] epel9: Fix a buffer overflow in bz3_compress() for small incompressible inputs
Date: Fri, 23 Oct 2026 11:56:34 GMT [thread overview]
Message-ID: <179275659435.1.7174017007099364908.rpms-bzip3-b96bce650cb9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bzip3
Branch : epel9
Commit : b96bce650cb91c791d44419ae038ba4698bb4a7e
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-10-23T13:19:14+02:00
Stats : +32/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/bzip3/c/b96bce650cb91c791d44419ae038ba4698bb4a7e?branch=epel9
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 044d4a0..5fb9be7 100644
--- a/bzip3.spec
+++ b/bzip3.spec
@@ -73,6 +73,9 @@ Patch10: bzip3-1.3.1-stricter-checks-at-boundaries-for-bz3_decode-and-cli
# <https://github.com/iczelia/bzip3/issues/191>,
# <https://github.com/iczelia/bzip3/issues/192>
Patch11: bzip3-1.3.1-fix-191-192.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>
+Patch12: bzip3-1.5.5-fix-193.patch
BuildRequires: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
@@ -197,6 +200,8 @@ fi
* Fri Oct 23 2026 Petr Pisar <ppisar@redhat.com> - 1.3.1-6
- Stricter checks at boundaries for bz3_decode and CLI
- Fix integer overflows in a decoder (upstream GH#191, upstream GH#192)
+- Fix a buffer overflow in bz3_compress() for small incompressible inputs
+ (upstream GH#193)
* Tue Sep 08 2026 Petr Pisar <ppisar@redhat.com> - 1.3.1-5
- Fix decompressing large incompressible streams (upstream GH#174)
reply other threads:[~2026-10-23 11:56 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=179275659435.1.7174017007099364908.rpms-bzip3-b96bce650cb9@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