[Bug malloc/21789] New: Consider adding reallocarray prototype to stdlib.h to match *BSD behaviour

krejzi at email dot com sourceware-bugzilla@sourceware.org
Wed Jul 19 10:18:00 GMT 2017


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

            Bug ID: 21789
           Summary: Consider adding reallocarray prototype to stdlib.h to
                    match *BSD behaviour
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: krejzi at email dot com
  Target Milestone: ---

Glibc 2.26 has added reallocarray function to be more compatible with *BSD
libc. On *BSD, reallocarray is declared in stdlib.h, whereas in current glibc
git master it's declared in malloc.h.

This might introduce some compatibility issues when the autoconf snippet that
checks for reallocarray presence assumes reallocarray is declared in stdlib.h.
See also:

https://github.com/westes/flex/issues/241

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list