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)
Tue, Apr 8, 2:16 PM
Unknown Object (File)
Mar 10 2025, 1:50 AM
Unknown Object (File)
Feb 8 2025, 1:44 AM
Unknown Object (File)
Jan 24 2025, 7:26 PM
Unknown Object (File)
Jan 21 2025, 5:07 AM
Unknown Object (File)
Jan 17 2025, 10:50 PM
Unknown Object (File)
Jan 17 2025, 10:50 PM
Unknown Object (File)
Jan 17 2025, 7:22 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