Page MenuHomeFreeBSD

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

Authored by kevans on Jun 21 2024, 5:00 PM.
Tags
None
Referenced Files
F171446841: D45686.diff
Fri, Sep 11, 4:20 AM
F171445913: D45686.id140857.diff
Fri, Sep 11, 4:15 AM
Unknown Object (File)
Thu, Sep 10, 12:32 PM
Unknown Object (File)
Thu, Sep 10, 9:22 AM
Unknown Object (File)
Sat, Sep 5, 10:42 PM
Unknown Object (File)
Sat, Sep 5, 10:59 AM
Unknown Object (File)
Sat, Sep 5, 10:20 AM
Unknown Object (File)
Sat, Sep 5, 6:33 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58295
Build 55183: arc lint + arc unit

Event Timeline

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

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
92

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.