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)
Mon, Feb 23, 10:05 AM
Unknown Object (File)
Fri, Feb 13, 3:54 PM
Unknown Object (File)
Fri, Feb 13, 6:53 AM
Unknown Object (File)
Sat, Feb 7, 7:10 PM
Unknown Object (File)
Sat, Feb 7, 4:20 PM
Unknown Object (File)
Fri, Jan 30, 8:46 PM
Unknown Object (File)
Jan 10 2026, 6:59 PM
Unknown Object (File)
Dec 29 2025, 6:10 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