Re: Bug#946792: Acknowledgement (gcc-9: Buffer overflow bug introduced by gcc-search-prefixed-as-ld.diff)

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.superh
Message-ID <[email protected]>
Control: tags -1 +patch

Attaching debdiff which incorporates the changes :).

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
gcc-9-fix-gcc-search-prefixed-as-ld.diff (text/x-patch, 1.1 KB)
diff -Nru gcc-9-9.2.1/debian/changelog gcc-9-9.2.1/debian/changelog
--- gcc-9-9.2.1/debian/changelog	2019-11-30 09:17:04.000000000 +0100
+++ gcc-9-9.2.1/debian/changelog	2019-12-16 00:49:01.000000000 +0100
@@ -1,3 +1,9 @@
+gcc-9 (9.2.1-21+sh4) unstable; urgency=medium
+
+  * Fix patch gcc-search-prefixed-as-ld.diff.
+
+ -- John Paul Adrian Glaubitz <[email protected]>  Mon, 16 Dec 2019 00:49:01 +0100
+
 gcc-9 (9.2.1-21) unstable; urgency=medium
 
   * Update to SVN 20191130 (r278870) from the gcc-9-branch.
diff -Nru gcc-9-9.2.1/debian/patches/gcc-search-prefixed-as-ld.diff gcc-9-9.2.1/debian/patches/gcc-search-prefixed-as-ld.diff
--- gcc-9-9.2.1/debian/patches/gcc-search-prefixed-as-ld.diff	2019-05-04 17:29:34.000000000 +0200
+++ gcc-9-9.2.1/debian/patches/gcc-search-prefixed-as-ld.diff	2019-12-16 00:48:45.000000000 +0100
@@ -6,7 +6,7 @@
  	{
  	  len = paths->max_len + extra_space + 1;
  	  len += MAX (MAX (suffix_len, multi_os_dir_len), multiarch_len);
-+	  len += multiarch_len + 2; /* triplet prefix for as, ld.  */
++	  len += strlen (DEFAULT_REAL_TARGET_MACHINE) + 2; /* triplet prefix for as, ld.  */
  	  path = XNEWVEC (char, len);
  	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.