This is the mail archive of the libc-alpha@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]

Re: Calling functions through a pointer of incorrect type


On 03/22/2016 02:33 PM, Joseph Myers wrote:
> On Tue, 22 Mar 2016, Florian Weimer wrote:
>>   if (fct == NULL)
>>     /* We are cheating here.  The gethostbyname2_r
>>        function does not have the same interface as
>>        gethostbyname3_r but the extra arguments the
>>        latter takes are added at the end.  So the
>>        gethostbyname2_r code will just ignore them.  */
>>     fct = __nss_lookup_function (nip, "gethostbyname2_r");
> 
> ... they aren't inherently bugs if all supported
> ABIs have the required property.

The only ABI I can think of that doesn't have this property is Windows
__stdcall.  Which obviously isn't used in any glibc configuration.


r~


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