make corrupts commands with latest eglibc (strcpy of overlapping strings)
Bug #540764 reported by
Max Bowsher
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
Changed in make-dfsg (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
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