make corrupts commands with latest eglibc (strcpy of overlapping strings)

Bug #540764 reported by Max Bowsher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Make
Unknown
Unknown
make-dfsg (Debian)
Fix Released
Unknown
make-dfsg (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I ran into some weird behaviour, and with the help of valgrind, tracked it to a misuse of strcpy in the code which elides backslash-newline sequences inside function calls.

The problem is that strcpy explicitly does not support being called with a source and destination that overlap, but make does this. This didn't cause a problem for me on Linux i386, but corrupted the command string on Linux amd64 for me. I suspect that libc is able to use a wider block-at-a-time primitive to implement strcpy on amd64 than i386.

This has so far affected only Mozilla software, to my knowledge. See the bug in debian for more info.

Related branches

Revision history for this message
Max Bowsher (maxb) wrote :

Upstream bug is http://savannah.gnu.org/bugs/index.php?29253 but Launchpad doesn't seem to want to let me add a bug watch

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package make-dfsg - 3.81-7ubuntu1

---------------
make-dfsg (3.81-7ubuntu1) lucid; urgency=low

  * Fix memory corruption error when backslash line continuation used in
    function call. upstream #29253, closes: #568665, LP: #540764.
 -- Matthias Klose <email address hidden> Thu, 18 Mar 2010 13:34:19 +0100

Changed in make-dfsg (Ubuntu):
status: New → Fix Released
Changed in make-dfsg (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.