Re: waitid() corrupts stack
Re: waitid() corrupts stack
- Subject: Re: waitid() corrupts stack
- From: Kevin Van Vechten <email@hidden>
- Date: Thu, 15 Apr 2010 21:25:58 -0700
Please file a bug report at http://bugreporter.apple.com/
Sent from my iPhone
On Apr 15, 2010, at 8:45 PM, Dave Keck <email@hidden> wrote:
>> The kernel is writing the wrong size value into your siginfo_t variable. It looks like it's writing the 64-bit version of siginfo_t, but your 32-bit process has a smaller siginfo_t type. (siginfo_t has pointer and longint fields that change size.)
>>
>> If you don't need the siginfo_t's values, you should be able to get away with passing a bigger buffer to waitid().
>
> Ah, thanks for the explanation. I presume all members preceding
> si_addr should be safe?
>
> David
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden