From 5fe7570ade91d3989e81f86f9b8cfa2529783f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8D=9A=E6=B4=8B123?= <11434016+wangboyang6@user.noreply.gitee.com> Date: Fri, 25 Aug 2023 09:17:40 +0000 Subject: [PATCH] Fix CVE-2022-47010. From https://sourceware.org/git/?p=binutils-gdb.git;a=blobdiff;f=binutils/prdbg.c;h=bb42a5b6c2d5f62ef5104ef37c2219734b4c88f8;hp=c1e41628d26d57aa0bca7469db72851d92be3b83;hb=0d02e70b197c786f26175b9a73f94e01d14abdab;hpb=8a24927bc8dbf6beac2000593b21235c3796dc35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王博洋123 <11434016+wangboyang6@user.noreply.gitee.com> --- binutils-CVE-2022-47010.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 binutils-CVE-2022-47010.patch diff --git a/binutils-CVE-2022-47010.patch b/binutils-CVE-2022-47010.patch new file mode 100644 index 0000000..da75d85 --- /dev/null +++ b/binutils-CVE-2022-47010.patch @@ -0,0 +1,15 @@ +--- a/binutils/prdbg.c ++++ b/binutils/prdbg.c +@@ -742,12 +742,9 @@ pr_function_type (void *p, int argcount, bool varargs) + + strcat (s, ")"); + +- if (! substitute_type (info, s)) +- return false; +- ++ bool ret = substitute_type (info, s); + free (s); +- +- return true; ++ return ret; + } \ No newline at end of file -- Gitee