Module Name:    src
Committed By:   tron
Date:           Fri Sep 11 10:41:43 UTC 2009

Modified Files:
        src/external/gpl3/binutils/dist/gas: remap.c

Log Message:
Avoid using alloca(3) to unbreak SSP builds.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/binutils/dist/gas/remap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/remap.c
diff -u src/external/gpl3/binutils/dist/gas/remap.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/remap.c:1.2
--- src/external/gpl3/binutils/dist/gas/remap.c:1.1.1.1	Tue Aug 18 09:30:15 2009
+++ src/external/gpl3/binutils/dist/gas/remap.c	Fri Sep 11 10:41:42 2009
@@ -82,8 +82,8 @@
     return filename;
   name = filename + map->old_len;
   name_len = strlen (name) + 1;
-  s = (char *) alloca (name_len + map->new_len);
+  s = (char *) xmalloc (name_len + map->new_len);
   memcpy (s, map->new_prefix, map->new_len);
   memcpy (s + map->new_len, name, name_len);
-  return xstrdup (s);
+  return s;
 }

Reply via email to