/[packages]/cauldron/binutils/releases/1:2.37/16.mga9/SOURCES/0015-PR28422-build_id-use-after-free.patch
ViewVC logotype

Contents of /cauldron/binutils/releases/1:2.37/16.mga9/SOURCES/0015-PR28422-build_id-use-after-free.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1752060 - (show annotations) (download)
Mon Oct 18 12:59:06 2021 UTC (2 years, 6 months ago) by schedbot
File size: 898 byte(s)
%repsys markrelease
version: 1:2.37
release: 16.mga9
revision: 1752057

Copying 1:2.37-16.mga9 to releases/ directory.
1 From c20c7adbeaa3af18a58ba1e20e6c33e7186356e3 Mon Sep 17 00:00:00 2001
2 From: Alan Modra <amodra@gmail.com>
3 Date: Wed, 6 Oct 2021 18:28:47 +1030
4 Subject: [PATCH] PR28422, build_id use-after-free
5
6 This fixes a bug in commit 5d9bbb73c1df. All fields preserved from a
7 bfd in struct bfd_preserve need to be cleared in bfd_reinit.
8
9 PR 28422
10 * format.c (bfd_reinit): Clear build_id.
11
12 (cherry picked from commit 6d661cdc5be46e890ed9255e749806f46a88e26c)
13 ---
14 bfd/format.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 diff --git a/bfd/format.c b/bfd/format.c
18 index 5d08d1d642c..408c984690e 100644
19 --- a/bfd/format.c
20 +++ b/bfd/format.c
21 @@ -151,6 +151,7 @@ bfd_reinit (bfd *abfd, unsigned int section_id, bfd_cleanup cleanup)
22 abfd->tdata.any = NULL;
23 abfd->arch_info = &bfd_default_arch_struct;
24 abfd->flags &= BFD_FLAGS_SAVED;
25 + abfd->build_id = NULL;
26 bfd_section_list_clear (abfd);
27 }
28
29 --
30 2.33.0
31

  ViewVC Help
Powered by ViewVC 1.1.30