public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bzip3] epel10.2: Fix a buffer overflow in bz3_compress() for small incompressible inputs
@ 2026-10-23  7:52 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-23  7:52 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-23  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23  7:52 [rpms/bzip3] epel10.2: Fix a buffer overflow in bz3_compress() for small incompressible inputs 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox