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 regex/16851] re_node_set_alloc should not return REG_ESPACE when size == 0


https://sourceware.org/bugzilla/show_bug.cgi?id=16851

--- Comment #3 from Paul Eggert <eggert at gnu dot org> ---
(In reply to Nathan Kennedy from comment #2)
> 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

Sure, but this is glibc.  Glibc is allowed to rely on its own behavior, even if
that behavior is not specified in the C standard.

> such as in the two downstream projects (gnulib and uClibc).

It's not a bug in gnulib, because of its use of MALLOC_0_IS_NONNULL.  If
there's a uClibc bug, they can fix it there.  At some point, we may unify
gnulib regex and glibc regex, and and that point we'll deal with this, but in
the meantime there is no bug here.

The simplest fix for the uClibc issue may be to modify uClibc so that its
malloc is compatible with glibc.  Yes, the C standard alllows uClibc's
gratuitous incompability with glibc, but it's not good software engineering
practice.  But this is not the correct forum to discuss uClibc issues.

-- 
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]