On Mon, Oct 17, 2011 at 05:14:23AM -0500, Jonathan Nieder wrote: > Lionel Elie Mamane wrote:
>> And I've just checked for overlap by running >> these on the latrace output: >> grep ' memcpy(' | sed 's/[(,)]/ /g' | gawk '{if ( strtonum($8) <= >> strtonum($5) && strtonum($8) + strtonum($11) >= strtonum($5)) print >> "overlap: " $5 " " $8 " " $11 }' >> grep ' memcpy(' | sed 's/[(,)]/ /g' | gawk '{if ( strtonum($8) >= >> strtonum($5) && strtonum($5) + strtonum($11) >= strtonum($8)) print >> "overlap: " $5 " " $8 " " $11 }' > Could you try the analagous checks with strcpy and stpcpy? I extended latrace to handle wchar_t*, too. I found those with overlap: 6734 wcscpy(dest = 0x7f6c5d40a570, src = (0x7f6c5d40a574, 33) "\\honey.domain.gestman.lu\[ROOT]"") [/lib/x86_64-linux-gnu/libc.so.6] { 6734 } wcscpy = (0x7f6c5d40a570, 33) "\\honey.domain.gestman.lu\[ROOT]"" 6734 wcscpy(dest = 0x7f6c5d42b9e0, src = (0x7f6c5d42b9e4, 33) "\\honey.domain.gestman.lu\[ROOT]"") [/lib/x86_64-linux-gnu/libc.so.6] { 6734 } wcscpy = (0x7f6c5d42b9e0, 33) "\\honey.domain.gestman.lu\[ROOT]"" However, in both cases the result looks like it is what the programmer (erroneously) expects? Neither stpcpy, nor wcpcpy appears in the latrace. -- Lionel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org