Page MenuHomeFreeBSD

include: ssp: fortify <sys/socket.h>
ClosedPublic

Authored by kevans on Jun 21 2024, 5:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 22, 3:50 AM
Unknown Object (File)
May 26 2026, 8:38 AM
Unknown Object (File)
May 22 2026, 8:27 AM
Unknown Object (File)
May 22 2026, 1:04 AM
Unknown Object (File)
May 20 2026, 4:15 AM
Unknown Object (File)
May 17 2026, 1:27 PM
Unknown Object (File)
May 17 2026, 1:51 AM
Unknown Object (File)
May 16 2026, 6:42 PM
Subscribers

Details

Summary

The entire recv*() implementation set is ripe for opportunities to
validate, so do what we can with what we have.

Sponsored by: Stormshield
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
lib/libc/tests/secure/generate-fortify-tests.lua
127

Is this check redundant? I'd expect new_socket() to check that if needed.

This revision is now accepted and ready to land.Jun 24 2024, 5:00 PM
kevans added inline comments.
lib/libc/tests/secure/generate-fortify-tests.lua
127

Indeed, new_socket() already does plenty to ensure that it hasn't failed.

This revision was automatically updated to reflect the committed changes.
kevans marked an inline comment as done.