[PATCH] Declare reallocarray by default

Florian Weimer fweimer@redhat.com
Tue Aug 28 15:15:00 GMT 2018


In <https://sourceware.org/ml/libc-alpha/2014-05/msg00506.html>, Joseph 
suggested to use __USE_GNU for this function, but since most of the BSDs 
and Illumos have it, I think __USE_MISC is more appropriate.  We have 
seen some reports of implicit function declarations, resulting in 
pointer truncation.  Declaring the function for _DEFAULT_SOURCE (i.e., 
by default, as long as -ansi isn't specified) would avoid such problems.

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reallocarray-default.patch
Type: text/x-patch
Size: 1394 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180828/ba47de01/attachment.bin>


More information about the Libc-alpha mailing list