`__if_nametoindex()` can leak an FD if its argument is too long

LIU Hao lh_mouse@126.com
Tue Feb 7 13:11:42 GMT 2023


Greetings, libc maintainers.

It looks like `if_nametoindex()` for Hurd can leak a socket descriptor if its argument string is too 
long. Patch attached.


-- 
Best regards,
LIU Hao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hurd-Don-t-lean-the-socket-FD-if-argument-to-__if_na.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20230207/9748864c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20230207/9748864c/attachment.sig>


More information about the Libc-alpha mailing list