public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bzip3] epel9: Fix a buffer overflow in bz3_compress() for small incompressible inputs
@ 2026-10-23 11:56
0 siblings, 0 replies; only message in thread
From: @ 2026-10-23 11:56 UTC (permalink / raw)
To: git-commits
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-23 11:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 11:56 [rpms/bzip3] epel9: 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