Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] mDNSPosix (v98) retrieve interface list bug on AMD64 architecture



Hi Andrew,

Thanks for the patch.  We'll apply it and see if it breaks anyone.

Best Regards,

-Marc


On Mar 31, 2005, at 3:16 PM, Andrew de Quincey wrote:

Hi, I hope this is the correct place to post this.

I've been having issues with mDNSPosix always binding to the loopback
interface. I'm using 64 bit gentoo linux on an AMD64.

It turns out the problem is the call to SIOCGIFCONF. The issue is that the
structure filled out by this call is larger on 64 bit machines than on 32 bit
machines. It is in fact larger than a struct sockaddr, so when processing the
list of interfaces, the current code doesn't advance far enough, and you end
up with a corrupted list.


Attached is a patch which fixes this behaviour. I'm afraid I do not know if
this is portable beyond linux.


There is another report about this very issue here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113637

<mDNSResponder-98.fixamd64.patch>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Rendezvous-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/rendezvous-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Rendezvous-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/rendezvous-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.