public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bird] epel10: Remove upstreamed patch
@ 2026-11-30 20:43 Robert Scheck
  0 siblings, 0 replies; only message in thread
From: Robert Scheck @ 2026-11-30 20:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/bird
Branch : epel10
Commit : 8ae028be46a7a877c363486f89b0f9b912a89a68
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2026-11-30T21:42:14+01:00
Stats  : +0/-30 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bird/c/8ae028be46a7a877c363486f89b0f9b912a89a68?branch=epel10

Log:
Remove upstreamed patch

---
diff --git a/bird-3.4.0-bytestr-overflow.patch b/bird-3.4.0-bytestr-overflow.patch
deleted file mode 100644
index 7afd2e6..0000000
--- a/bird-3.4.0-bytestr-overflow.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-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 f860828..3d37704 100644
--- a/bird.spec
+++ b/bird.spec
@@ -11,7 +11,6 @@ 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

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

only message in thread, other threads:[~2026-11-30 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 20:43 [rpms/bird] epel10: Remove upstreamed patch Robert Scheck

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