Page MenuHomeFreeBSD

libc rpc: Fix mismatches in prototypes for array bounds.
ClosedPublic

Authored by jhb on Sep 27 2022, 5:45 PM.
Tags
None
Referenced Files
F139501798: D36757.diff
Fri, Dec 12, 7:58 PM
Unknown Object (File)
Thu, Dec 11, 7:27 PM
Unknown Object (File)
Tue, Nov 25, 7:46 AM
Unknown Object (File)
Nov 10 2025, 8:41 PM
Unknown Object (File)
Nov 7 2025, 9:23 AM
Unknown Object (File)
Oct 28 2025, 6:30 PM
Unknown Object (File)
Oct 25 2025, 9:32 PM
Unknown Object (File)
Oct 25 2025, 4:24 AM
Subscribers
None

Details

Summary

Various RPC functions used a bare pointer in function prototypes to
describe fixed-length buffer arguments but used a fixed-length array
in the function definition. The manual page for these functions
describes the parameters as being fixed-length buffers, so update
the prototypes to match the definitions.

Reported by: GCC -Warray-parameter

Diff Detail

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