This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/16851] re_node_set_alloc should not return REG_ESPACE when size == 0
- From: "nkennedy at grammatech dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs-regex at sourceware dot org
- Date: Fri, 18 Apr 2014 14:37:44 +0000
- Subject: [Bug regex/16851] re_node_set_alloc should not return REG_ESPACE when size == 0
- Auto-submitted: auto-generated
- References: <bug-16851-132 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16851
--- Comment #2 from Nathan Kennedy <nkennedy at grammatech dot com> ---
re_node_set_alloc's use of malloc is not portable in that it needlessly relies
on current glibc malloc behavior not specified in any C standard for malloc;
the return value of malloc(0). Which works when it's using glibc malloc as is,
but makes the code nonportable, such as in the two downstream projects (gnulib
and uClibc).
--
You are receiving this mail because:
You are on the CC list for the bug.