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)
Wed, Aug 5, 3:45 AM
Unknown Object (File)
Tue, Aug 4, 1:56 AM
Unknown Object (File)
Fri, Jul 31, 11:48 AM
Unknown Object (File)
Mon, Jul 27, 9:33 PM
Unknown Object (File)
Sun, Jul 26, 11:18 AM
Unknown Object (File)
Sat, Jul 18, 4:01 PM
Unknown Object (File)
Jul 4 2026, 9:20 AM
Unknown Object (File)
Jul 3 2026, 4:40 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