Message144255
| Author |
neologix |
| Recipients |
baikie, neologix, vstinner |
| Date |
2011年09月18日.21:11:39 |
| SpamBayes Score |
1.0947326e-07 |
| Marked as misclassified |
No |
| Message-id |
<1316380300.83.0.142812104939.issue12981@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> I had a look at this patch, and the FD passing looked OK, except
> that calculating the buffer size with CMSG_SPACE() may allow more
> than one file descriptor to be received, with the extra one going
> unnoticed - it should use CMSG_LEN() instead
Thanks for catching this.
Here's an updated patch.
> (the existing C implementation has the same problem, I see).
I just checked, and the C version uses CMSG_SPACE() as the buffer size, but passes CMSG_LEN() to cmsg->cmsg_len and msg.msg_controllen. Or am I missing something? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年09月18日 21:11:40 | neologix | set | recipients:
+ neologix, vstinner, baikie |
| 2011年09月18日 21:11:40 | neologix | set | messageid: <1316380300.83.0.142812104939.issue12981@psf.upfronthosting.co.za> |
| 2011年09月18日 21:11:40 | neologix | link | issue12981 messages |
| 2011年09月18日 21:11:40 | neologix | create |
|