public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bird] f44: Upgrade to 3.4.0 (#2549947)
@ 2026-10-12 22:17 Robert Scheck
0 siblings, 0 replies; only message in thread
From: Robert Scheck @ 2026-10-12 22:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bird
Branch : f44
Commit : 7a3f3090513025742e3b695ba8dd448627b636dd
Author : Robert Scheck <robert@fedoraproject.org>
Date : 2026-10-13T00:16:36+02:00
Stats : +35/-2 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/bird/c/7a3f3090513025742e3b695ba8dd448627b636dd?branch=f44
Log:
Upgrade to 3.4.0 (#2549947)
---
diff --git a/bird-3.4.0-bytestr-overflow.patch b/bird-3.4.0-bytestr-overflow.patch
new file mode 100644
index 0000000..7afd2e6
--- /dev/null
+++ b/bird-3.4.0-bytestr-overflow.patch
@@ -0,0 +1,29 @@
+Test: Fix stack overflow in bt_fmt_bytestr()
+
+bt_fmt_bytestr() allocates len + 1 bytes but writes two hex digits
+per byte plus a terminating NUL, overflowing the alloca() buffer.
+The formatter runs for every test case, not only on failure. On
+x86_64, alloca's 16-byte rounding usually hides the overflow; on
+s390x it smashes the stack and t_bstrhextobin/t_bstrbintohex fail.
+
+Allocate 2 * len + 1 bytes and print with %02x, so every byte is
+exactly two digits (the old %hx also dropped leading zeros).
+
+Fixes: 3567ebc03 ("Lib: Add tests for strtoul.c")
+
+--- bird-3.4.0/lib/strtoul_test.c 2026-10-12 08:04:16.000000000 +0000
++++ bird-3.4.0/lib/strtoul_test.c.bytestr-overflow 2026-10-12 21:48:12.603991062 +0000
+@@ -201,11 +201,11 @@
+ return;
+ }
+
+- char *tmp = allocz(data->len + 1);
++ char *tmp = allocz(2 * data->len + 1);
+ char *t = tmp;
+
+ for (int i = 0; i < data->len; i++)
+- t += bsprintf(t, "%hx", data->buf[i]);
++ t += bsprintf(t, "%02x", data->buf[i]);
+
+ snprintf(buf, size, "0x%s", tmp);
+ }
diff --git a/bird.spec b/bird.spec
index 08ec491..ccb7464 100644
--- a/bird.spec
+++ b/bird.spec
@@ -1,7 +1,7 @@
%global _hardened_build 1
Name: bird
-Version: 3.3.3
+Version: 3.4.0
Release: 1%{?dist}
Summary: BIRD Internet Routing Daemon
@@ -11,6 +11,7 @@ Source0: https://bird.nic.cz/download/bird-%{version}.tar.gz
Source1: bird.service
Source2: bird.tmpfilesd
Source3: bird.sysusersd
+Patch0: bird-3.4.0-bytestr-overflow.patch
BuildRequires: flex
BuildRequires: bison
@@ -111,6 +112,9 @@ make test
%endif
%changelog
+* Tue Oct 13 2026 Robert Scheck <robert@fedoraproject.org> - 3.4.0-1
+- Upgrade to 3.4.0 (#2549947)
+
* Mon Oct 05 2026 Robert Scheck <robert@fedoraproject.org> - 3.3.3-1
- Upgrade to 3.3.3 (#2545882)
diff --git a/sources b/sources
index 2e680d1..2bf0dfd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (bird-3.3.3.tar.gz) = 6e66f3bd095adb31d3112020925754664091b07b2c37beb255bbddfc789cf4d9a8c91e683250d8aaf12e4a79fafd1693babf1231ea4bec381cc3ce571dd8ab1b
+SHA512 (bird-3.4.0.tar.gz) = 38e0e452ebf725e12522630ced3b2a4d0dd65629b1abb8fdfc42e9cc39eb933db56a1382080f4cf8f34fe2f46a1801cd7fa81ecba89eae324ab2fbc42411b86c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-12 22:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 22:17 [rpms/bird] f44: Upgrade to 3.4.0 (#2549947) Robert Scheck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox