This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2703] New: envz_strip() works incorrectly


The envz_strip () routine in the string/envz.c works incorrectly.

In my opinion after strip "arg1=value1\0arg2\0arg3=value3\0arg4\0" it should
return "arg1=value1\0arg3=value3\0", however, it returns "arg1=value1\0".

After my investigation, I think it is caused by 
  "memmove (entry + entry_len, entry, left);"
which should be
  "memmove (entry, entry + entry_len, left);"

-- 
           Summary: envz_strip() works incorrectly
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: Joy dot lists at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=2703

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]