Blame SOURCES/binutils-CVE-2021-3826.patch

edd3b6
--- binutils.orig/libiberty/d-demangle.c	2022-11-30 14:25:36.976876338 +0000
edd3b6
+++ binutils-2.36.1/libiberty/d-demangle.c	2022-11-30 14:26:37.546690548 +0000
edd3b6
@@ -380,7 +380,7 @@ dlang_symbol_backref (string *decl, cons
edd3b6
 
edd3b6
   /* Must point to a simple identifier.  */
edd3b6
   backref = dlang_number (backref, &len;;
edd3b6
-  if (backref == NULL)
edd3b6
+  if (backref == NULL || strlen (backref) < len) 
edd3b6
     return NULL;
edd3b6
 
edd3b6
   backref = dlang_lname (decl, backref, len);