public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/avr-binutils] f44: updated to 2.47
@ 2026-10-27 14:31 Michal Hlavinka
0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-10-27 14:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/avr-binutils
Branch : f44
Commit : 5a238654c86c0246a18e110f29a9dd13f9a67119
Author : Michal Hlavinka <mhlavink@redhat.com>
Date : 2026-10-27T15:16:54+01:00
Stats : +7/-222 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/avr-binutils/c/5a238654c86c0246a18e110f29a9dd13f9a67119?branch=f44
Log:
updated to 2.47
---
diff --git a/.gitignore b/.gitignore
index ca14eaa..2367ce0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@ binutils-2.20.tar.bz2
/binutils-2.43.tar.xz
/binutils-2.44.tar.xz
/binutils-2.45.tar.xz
+/binutils-2.47.tar.xz
diff --git a/avr-binutils.spec b/avr-binutils.spec
index 7651ceb..7794c60 100644
--- a/avr-binutils.spec
+++ b/avr-binutils.spec
@@ -1,8 +1,8 @@
%define target avr
Name: %{target}-binutils
-Version: 2.45
-Release: 8%{?dist}
+Version: 2.47
+Release: 1%{?dist}
Epoch: 1
Summary: Cross Compiling GNU binutils targeted at %{target}
License: GPL-2.0-or-later
@@ -12,12 +12,6 @@ Source1: README.fedora
#add widespread options to avr-size: --format=avr -mcu=XX
Patch1: http://distribute.atmel.no/tools/opensource/avr-gcc/binutils-2.20.1/30-binutils-2.20.1-avr-size.patch
Patch2: avr-binutils-config.patch
-# from upstream, for == 2.45, rhbz#2400335
-Patch3: binutils-2.45-cve-2025-11081.patch
-# from upstream, for == 2.45, rhbz#2400340
-Patch4: binutils-2.45-cve-2025-11082.patch
-# from upstream, for == 2.45, rhbz#2400336
-Patch5: binutils-2.45-cve-2025-11083.patch
Patch6: avr-binutils-2.45-CVE-2026-19582.patch
BuildRequires: gawk texinfo gcc
@@ -38,9 +32,6 @@ native %{_arch} platform.
pushd binutils-%{version}
%patch -P1 -p2 -b .avr-size
%patch -P2 -p1 -b .config
-%patch -P 3 -p1 -b .cve-2025-11081
-%patch -P 4 -p1 -b .cve-2025-11082
-%patch -P 5 -p1 -b .cve-2025-11083
%patch -P 6 -p1 -b .2.45-CVE-2026-19582
# We call configure directly rather than via macros, thus if
@@ -95,6 +86,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libdir}/bfd-plugins/lib
%changelog
+* Tue Oct 27 2026 Michal Hlavinka <mhlavink@redhat.com> - 1:2.47-1
+- updated to 2.47
+
* Mon Oct 05 2026 Michal Hlavinka <mhlavink@redhat.com> - 1:2.45-8
- fix CVE-2026-19582: a potential buffer overflow in rsrc_resource_name (rhbz#2519351)
diff --git a/binutils-2.45-cve-2025-11081.patch b/binutils-2.45-cve-2025-11081.patch
deleted file mode 100644
index a51f1f2..0000000
--- a/binutils-2.45-cve-2025-11081.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From f87a66db645caf8cc0e6fc87b0c28c78a38af59b Mon Sep 17 00:00:00 2001
-From: Alan Modra <amodra@gmail.com>
-Date: Tue, 9 Sep 2025 18:32:09 +0930
-Subject: [PATCH] PR 33406 SEGV in dump_dwarf_section
-
-Trying to dump .sframe in a PE file results in a segfault accessing
-elf_section_data.
-
- * objdump (dump_sframe_section, dump_dwarf_section): Don't access
- elf_section_type without first checking the file is ELF.
----
- binutils/objdump.c | 10 ++++++----
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/binutils/objdump.c b/binutils/objdump.c
-index 290f7e51f66..ee8823da05a 100644
---- a/binutils/objdump.c
-+++ b/binutils/objdump.c
-@@ -4485,7 +4485,8 @@ dump_dwarf_section (bfd *abfd, asection *section,
- else
- match = name;
-
-- if (elf_section_type (section) == SHT_GNU_SFRAME)
-+ if (bfd_get_flavour (abfd) == bfd_target_elf_flavour
-+ && elf_section_type (section) == SHT_GNU_SFRAME)
- match = ".sframe";
-
- for (i = 0; i < max; i++)
-@@ -4993,9 +4994,10 @@ dump_sframe_section (bfd *abfd, const char *sect_name, bool is_mainfile)
- SHT_GNU_SFRAME. For SFrame sections from Binutils 2.44 or earlier,
- check explcitly for SFrame sections of type SHT_PROGBITS and name
- ".sframe" to allow them. */
-- else if (elf_section_type (sec) != SHT_GNU_SFRAME
-- && !(elf_section_type (sec) == SHT_PROGBITS
-- && strcmp (sect_name, ".sframe") == 0))
-+ else if (bfd_get_flavour (abfd) != bfd_target_elf_flavour
-+ || (elf_section_type (sec) != SHT_GNU_SFRAME
-+ && !(elf_section_type (sec) == SHT_PROGBITS
-+ && strcmp (sect_name, ".sframe") == 0)))
- {
- printf (_("Section %s does not contain SFrame data\n\n"),
- sanitize_string (sect_name));
---
-2.43.7
-
diff --git a/binutils-2.45-cve-2025-11082.patch b/binutils-2.45-cve-2025-11082.patch
deleted file mode 100644
index 804e37d..0000000
--- a/binutils-2.45-cve-2025-11082.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From ea1a0737c7692737a644af0486b71e4a392cbca8 Mon Sep 17 00:00:00 2001
-From: "H.J. Lu" <hjl.tools@gmail.com>
-Date: Mon, 22 Sep 2025 15:20:34 +0800
-Subject: [PATCH] elf: Don't read beyond .eh_frame section size
-
- PR ld/33464
- * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Don't read beyond
- .eh_frame section size.
-
-Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
----
- bfd/elf-eh-frame.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
-index dc0d2e097f5..30bb313489c 100644
---- a/bfd/elf-eh-frame.c
-+++ b/bfd/elf-eh-frame.c
-@@ -737,6 +737,7 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
- if (hdr_id == 0)
- {
- unsigned int initial_insn_length;
-+ char *null_byte;
-
- /* CIE */
- this_inf->cie = 1;
-@@ -753,10 +754,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
- REQUIRE (cie->version == 1
- || cie->version == 3
- || cie->version == 4);
-- REQUIRE (strlen ((char *) buf) < sizeof (cie->augmentation));
-+ null_byte = memchr ((char *) buf, 0, end - buf);
-+ REQUIRE (null_byte != NULL);
-+ REQUIRE ((size_t) (null_byte - (char *) buf)
-+ < sizeof (cie->augmentation));
-
- strcpy (cie->augmentation, (char *) buf);
-- buf = (bfd_byte *) strchr ((char *) buf, '\0') + 1;
-+ buf = (bfd_byte *) null_byte + 1;
- this_inf->u.cie.aug_str_len = buf - start - 1;
- ENSURE_NO_RELOCS (buf);
- if (buf[0] == 'e' && buf[1] == 'h')
---
-2.43.7
-
diff --git a/binutils-2.45-cve-2025-11083.patch b/binutils-2.45-cve-2025-11083.patch
deleted file mode 100644
index 56c8d05..0000000
--- a/binutils-2.45-cve-2025-11083.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-From 937aa6a37d23b6fd24150824a003abaeaef87910 Mon Sep 17 00:00:00 2001
-From: Alan Modra <amodra@gmail.com>
-Date: Thu, 9 Oct 2025 14:46:39 +1030
-Subject: [PATCH] gas/macro.c getstring
-
-This code:
- if (in->ptr[idx] == '!')
- {
- idx++;
- sb_add_char (acc, in->ptr[idx++]);
- }
-and similar code in the other loop, blindly accessed the next element
-of the string buffer without first checking idx against in->len,
-leading to uninitialised accesses or buffer overruns. Fix that, and
-tidy the loops so that the function always returns the index one past
-the last char consumed. (It could return idx == in->len + 1).
-
- * macro.c (getstring): Don't access past end of input string
- buffer. Tidy loops. Don't return an index past in->len.
----
- gas/macro.c | 61 +++++++++++++++++++++--------------------------------
- 1 file changed, 24 insertions(+), 37 deletions(-)
-
-diff --git a/gas/macro.c b/gas/macro.c
-index 13202d3f58a..b272800388a 100644
---- a/gas/macro.c
-+++ b/gas/macro.c
-@@ -292,24 +292,25 @@ getstring (size_t idx, sb *in, sb *acc)
- {
- int nest = 0;
- idx++;
-- while (idx < in->len
-- && (in->ptr[idx] != '>' || nest))
-+ while (idx < in->len)
- {
-- if (in->ptr[idx] == '!')
-- {
-- idx++;
-- sb_add_char (acc, in->ptr[idx++]);
-- }
-- else
-+ if (in->ptr[idx] == '!' && idx + 1 < in->len)
-+ idx++;
-+ else if (in->ptr[idx] == '>')
- {
-- if (in->ptr[idx] == '>')
-- nest--;
-- if (in->ptr[idx] == '<')
-- nest++;
-- sb_add_char (acc, in->ptr[idx++]);
-+ if (nest == 0)
-+ {
-+ idx++;
-+ break;
-+ }
-+ nest--;
- }
-+ else if (in->ptr[idx] == '<')
-+ nest++;
-+
-+ sb_add_char (acc, in->ptr[idx]);
-+ idx++;
- }
-- idx++;
- }
- else if (in->ptr[idx] == '"' || in->ptr[idx] == '\'')
- {
-@@ -317,7 +318,6 @@ getstring (size_t idx, sb *in, sb *acc)
- int escaped = 0;
-
- idx++;
--
- while (idx < in->len)
- {
- if (in->ptr[idx - 1] == '\\')
-@@ -325,32 +325,19 @@ getstring (size_t idx, sb *in, sb *acc)
- else
- escaped = 0;
-
-- if (flag_macro_alternate && in->ptr[idx] == '!')
-+ if (flag_macro_alternate
-+ && in->ptr[idx] == '!' && idx + 1 < in->len)
- {
-- idx ++;
--
-- sb_add_char (acc, in->ptr[idx]);
--
-- idx ++;
-- }
-- else if (escaped && in->ptr[idx] == tchar)
-- {
-- sb_add_char (acc, tchar);
-- idx ++;
-+ idx++;
- }
-- else
-+ else if (!escaped && in->ptr[idx] == tchar)
- {
-- if (in->ptr[idx] == tchar)
-- {
-- idx ++;
--
-- if (idx >= in->len || in->ptr[idx] != tchar)
-- break;
-- }
--
-- sb_add_char (acc, in->ptr[idx]);
-- idx ++;
-+ idx++;
-+ if (idx >= in->len || in->ptr[idx] != tchar)
-+ break;
- }
-+ sb_add_char (acc, in->ptr[idx]);
-+ idx++;
- }
- }
- }
---
-2.43.7
-
diff --git a/sources b/sources
index 3a6bcfd..23fca3d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (binutils-2.45.tar.xz) = c7b10a7466d9fd398d7a0b3f2a43318432668d714f2ec70069a31bdc93c86d28e0fe83792195727167743707fbae45337c0873a0786416db53bbf22860c16ce7
+SHA512 (binutils-2.47.tar.xz) = 3126a1064374d8da40d4d70630c204ed1e75d542c447d53fca9778c7ceff095c28e9b445e15a313fef9729082d7966471ee6b5b715d479aa6d568528743e1d98
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 14:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 14:31 [rpms/avr-binutils] f44: updated to 2.47 Michal Hlavinka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox