Page MenuHomeFreeBSD

fix sooptcopyin on big-endian platforms (e.g. MIPS64EB)
ClosedPublic

Authored by br on Sep 20 2016, 2:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 3 2024, 7:33 AM
Unknown Object (File)
Mar 3 2024, 7:06 AM
Unknown Object (File)
Feb 26 2024, 12:39 PM
Unknown Object (File)
Dec 20 2023, 5:25 AM
Unknown Object (File)
Jun 2 2023, 5:42 PM
Unknown Object (File)
May 15 2023, 3:05 PM
Unknown Object (File)
Apr 26 2023, 3:54 PM
Unknown Object (File)
Jan 6 2023, 9:51 AM
Subscribers
None

Details

Summary

sooptcopyin checks if size of data provided by user is <= 4 bytes to fit optval (which is int). If size of data is bigger than 4 bytes then it strips down the size to 4.
On bigendian platforms we have to move pointer as well so we copy the actual data.

Diff Detail

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

Event Timeline

br retitled this revision from to fix sooptcopyin on big-endian platforms (e.g. MIPS64EB).
br updated this object.
br edited the test plan for this revision. (Show Details)
br added reviewers: wollman, network.
gnn added a reviewer: gnn.
This revision is now accepted and ready to land.Sep 20 2016, 3:04 PM
This revision was automatically updated to reflect the committed changes.