Re: Crash due to unaligned hostent.h_addr dereference?
Re: Crash due to unaligned hostent.h_addr dereference?
- Subject: Re: Crash due to unaligned hostent.h_addr dereference?
- From: Sean McBride <email@hidden>
- Date: Wed, 18 Sep 2013 12:46:10 -0400
- Organization: Rogue Research Inc.
On Mon, 16 Sep 2013 16:55:14 -0400, Jeffrey Walton said:
>On Mon, Sep 16, 2013 at 12:57 PM, Sean McBride <email@hidden>
>wrote:
>> On Mon, 16 Sep 2013 01:38:03 -0400, Jeffrey Walton said:
>>
>>>I'm experiencing a crash due to unaligned hostent.h_addr dereference.
>>>Its a typedef, so its equivalent to
>>>
>>> char** ptr = hostent.h_addr;
>>>
>>>The problem is, ptr = 0x60c00000a7df, so a dereference of ptr leads to a
>>>crash.
>>>
>>>I thought this issue was recently talked about on this list, but I
>>>can't find the emails (or was it CFE Dev?). I searched the archives
>>>back a couple of months, but I have not been able to locate it.
>>>
>>>Can anyone recall the title of that topic?
>>
>> This?
>> <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024523.html>
>Thanks again Sean. I looked though the thread, but did not see how you
>re-aligned the dirent. Could you share?
I just filed <rdar://12388003> and moved on. Since they split -fcatch-undefined-behavior into more granular options, I just stopped using -fsanitize=alignment entirely, the other options have found enough bugs to keep me busy.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden