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, May 13, 2:23 AM
Unknown Object (File)
Tue, May 12, 10:56 PM
Unknown Object (File)
Wed, May 6, 9:59 PM
Unknown Object (File)
Sat, May 2, 10:48 AM
Unknown Object (File)
Mon, Apr 27, 11:17 PM
Unknown Object (File)
Sun, Apr 26, 2:28 AM
Unknown Object (File)
Fri, Apr 24, 11:01 AM
Unknown Object (File)
Thu, Apr 23, 1:17 PM
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