Re: waitid() corrupts stack
Re: waitid() corrupts stack
- Subject: Re: waitid() corrupts stack
- From: Dave Keck <email@hidden>
- Date: Thu, 15 Apr 2010 17:45:39 -1000
> 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