Page MenuHomeFreeBSD

Don't pass size_t arguments to setsockopt(SO_SNDBUF/SO_RCVBUF).
ClosedPublic

Authored by brooks on Apr 27 2017, 12:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 20 2024, 12:46 AM
Unknown Object (File)
Dec 21 2023, 3:03 PM
Unknown Object (File)
Dec 20 2023, 1:50 AM
Unknown Object (File)
Oct 30 2023, 10:46 AM
Unknown Object (File)
Sep 11 2023, 4:44 AM
Unknown Object (File)
Sep 6 2023, 9:36 AM
Unknown Object (File)
Sep 5 2023, 8:54 PM
Unknown Object (File)
Aug 27 2023, 6:43 AM
Subscribers
None

Details

Summary

These command take an int. The tests work by accident on little-endian
systems.

Tested with: qemu-cheri and CheriBSD built for mips64
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Oops. LGTM. This seems like a good candidate for a Coverity check.

This revision is now accepted and ready to land.Apr 27 2017, 2:44 AM

I've added a not even compiled change in D10519 which would have caught this.

Could you please add testing done on the Cheri emulator?

In D10518#217952, @ngie wrote:

Could you please add testing done on the Cheri emulator?

I'm not sure what you're asking. FYI, this is broken on all big-endian 64-bit systems.

This revision was automatically updated to reflect the committed changes.