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
Unknown Object (File)
Sat, Mar 28, 2:11 AM
Unknown Object (File)
Sat, Mar 28, 12:17 AM
Unknown Object (File)
Fri, Mar 27, 10:49 PM
Unknown Object (File)
Fri, Mar 27, 4:55 PM
Unknown Object (File)
Fri, Mar 27, 9:28 AM
Unknown Object (File)
Feb 23 2026, 10:05 AM
Unknown Object (File)
Feb 13 2026, 3:54 PM
Unknown Object (File)
Feb 13 2026, 6:53 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