This is the mail archive of the glibc-bugs-regex@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 regex/16851] re_node_set_alloc should not return REG_ESPACE when size == 0


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.


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