bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29253] Memory corruption error when backslash line continuation us


From: Manoj Srivastava
Subject: [bug #29253] Memory corruption error when backslash line continuation used in function call
Date: Sun, 21 Mar 2010 18:08:41 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100225 Iceweasel/3.5.8 (like Firefox/3.5.8) Glue/4.5

Follow-up Comment #1, bug #29253 (project make):

Please note that bcopy is marked as LEGACY in POSI, it is perhas better to
use memmove, as suggested in the man page for bcopy.
Here is an equivalent patch from : Roderich Schupp
<address@hidden>

--- make-dfsg-3.81-ORIG/job.c   2010-02-06 18:38:32.000000000 +0100
+++ make-dfsg-3.81/job.c        2010-02-06 18:40:56.000000000 +0100
@@ -1594,7 +1594,7 @@
       /* There are no more references in this line to worry about.
         Copy the remaining uninteresting text to the output.  */
       if (out != in)
-       strcpy (out, in);
+       memmove(out, in, strlen(in)+1);
 
       /* Finally, expand the line.  */
       lines[i] = allocated_variable_expand_for_file
(cmds->command_lines[i],


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29253>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]