This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2703] New: envz_strip() works incorrectly
- From: "Joy dot lists at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 May 2006 03:52:15 -0000
- Subject: [Bug libc/2703] New: envz_strip() works incorrectly
- Reply-to: sourceware-bugzilla at sourceware dot org
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.