diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0016-CVE-2022-47007.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0016-CVE-2022-47007.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0016-CVE-2022-47007.patch b/meta/recipes-devtools/binutils/binutils/0016-CVE-2022-47007.patch deleted file mode 100644 index 75ad6ad3ba..0000000000 --- a/meta/recipes-devtools/binutils/binutils/0016-CVE-2022-47007.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From: Alan Modra <amodra@gmail.com> | ||
2 | Date: Thu, 16 Jun 2022 23:30:41 +0000 (+0930) | ||
3 | Subject: PR29254, memory leak in stab_demangle_v3_arg | ||
4 | X-Git-Tag: binutils-2_39~237 | ||
5 | X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=0ebc886149c22aceaf8ed74267821a59ca9d03eb | ||
6 | |||
7 | PR29254, memory leak in stab_demangle_v3_arg | ||
8 | |||
9 | PR 29254 | ||
10 | * stabs.c (stab_demangle_v3_arg): Free dt on failure path. | ||
11 | |||
12 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=0ebc886149c22aceaf8ed74267821a59ca9d03eb] | ||
13 | |||
14 | CVE: CVE-2022-47007 | ||
15 | |||
16 | Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com> | ||
17 | |||
18 | --- | ||
19 | |||
20 | diff --git a/binutils/stabs.c b/binutils/stabs.c | ||
21 | index 2b5241637c1..796ff85b86a 100644 | ||
22 | --- a/binutils/stabs.c | ||
23 | +++ b/binutils/stabs.c | ||
24 | @@ -5467,7 +5467,10 @@ stab_demangle_v3_arg (void *dhandle, struct stab_handle *info, | ||
25 | dc->u.s_binary.right, | ||
26 | &varargs); | ||
27 | if (pargs == NULL) | ||
28 | - return NULL; | ||
29 | + { | ||
30 | + free (dt); | ||
31 | + return NULL; | ||
32 | + } | ||
33 | |||
34 | return debug_make_function_type (dhandle, dt, pargs, varargs); | ||
35 | } | ||