This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10959] New: argz_create_sep() may create an empty entry at the end of the argz array
- From: "lucien at haijen dot be" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Nov 2009 12:34:59 -0000
- Subject: [Bug libc/10959] New: argz_create_sep() may create an empty entry at the end of the argz array
- Reply-to: sourceware-bugzilla at sourceware dot org
Concerning argz routines.
argz_create_sep() is, as already stated, supposed to ignore empty strings or
fields. This is not the case : adding one or more delimiter characters at the
end of the string will indeed create an empty entry at the end of the argz
bytearray. argz_count() duly reports that, argz_extract() has an element which
points to an empty string, argz_stringify() lets it disappear. At least this is
confusing.
A small demo program will be forwarded as soon as I have received a bug ID.
Greetings
L, Haijen
--
Summary: argz_create_sep() may create an empty entry at the end
of the argz array
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: lucien at haijen dot be
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10959
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.